File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/g3301_3400/s3394_check_if_grid_can_be_cut_into_sections Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 77public class Solution {
88 private static final int MASK = (1 << 30 ) - 1 ;
99
10- public boolean checkValidCuts (int m , int [][] rc ) {
11- int n = rc .length ;
10+ public boolean checkValidCuts (int m , int [][] rectangles ) {
11+ int n = rectangles .length ;
1212 long [] start = new long [n ];
1313 for (int i = 0 ; i < n ; i ++) {
14- start [i ] = ((long ) rc [i ][1 ] << 32 ) + rc [i ][3 ];
14+ start [i ] = ((long ) rectangles [i ][1 ] << 32 ) + rectangles [i ][3 ];
1515 }
1616 Arrays .sort (start );
1717 if (validate (start )) {
1818 return true ;
1919 }
2020 for (int i = 0 ; i < n ; i ++) {
21- start [i ] = ((long ) rc [i ][0 ] << 32 ) + rc [i ][2 ];
21+ start [i ] = ((long ) rectangles [i ][0 ] << 32 ) + rectangles [i ][2 ];
2222 }
2323 Arrays .sort (start );
2424 return validate (start );
You can’t perform that action at this time.
0 commit comments