int [ ] [ ] function ( String ... arg0 ) { int [ ] [ ] loc0 = new int [ arg0 . length ] [ ] ; for ( int loc1 = 0 ; loc1 < arg0 . length ; loc1 ++ ) { loc0 [ loc1 ] = stringToInts ( arg0 [ loc1 ] ) ; } return loc0 ; }
returns a 2-d grid parsed from strings , one string per row . the '' ... '' is a java 5 feature that essentially makes `` rows '' a string array . provided utility concode_field_sep int first_grid[][] concode_elem_sep int[][] easyGrid concode_elem_sep int[][] mediumGrid concode_elem_sep int solutions concode_elem_sep HashSet<Integer> values concode_elem_sep int i concode_elem_sep int j concode_elem_sep long starttime concode_elem_sep int SIZE concode_elem_sep int[][] my_easyGrid concode_elem_sep int spot_index concode_elem_sep int grid[][] concode_elem_sep int[][] hardGrid concode_elem_sep int PART concode_elem_sep ArrayList<Spot> spots concode_elem_sep int MAX_SOLUTIONS concode_field_sep void update_solutions concode_elem_sep void main concode_elem_sep void find_init_solutions concode_elem_sep int getSolutions concode_elem_sep void cleanGrid concode_elem_sep void SanityCheck concode_elem_sep int[][] textToGrid concode_elem_sep int solve concode_elem_sep void updateGrid concode_elem_sep String toString concode_elem_sep int[] stringToInts concode_elem_sep String getSolutionText concode_elem_sep long getElapsed