List < List < String >> function ( String arg0 ) { if ( arg0 == null || arg0 . isEmpty ( ) ) { return new ArrayList < > ( ) ; } int loc0 = arg0 . length ( ) ; int [ ] [ ] loc1 = new int [ loc0 ] [ loc0 ] ; for ( int loc2 = 0 ; loc2 < loc0 ; loc2 ++ ) { loc1 [ loc2 ] [ loc2 ] = 1 ; } return helper ( arg0 , 0 , loc1 ) ; }
divide the string to the two parts if the left is palindrome then recursively use the method to get the answer of the right part concode_field_sep PlaceHolder placeHolder concode_field_sep boolean isPalindrome concode_elem_sep List<List<String>> helper concode_elem_sep void main concode_elem_sep List<List<String>> partition1