File tree 1 file changed +4
-4
lines changed
src/main/java/g3301_3400/s3394_check_if_grid_can_be_cut_into_sections
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 7
7
public class Solution {
8
8
private static final int MASK = (1 << 30 ) - 1 ;
9
9
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 ;
12
12
long [] start = new long [n ];
13
13
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 ];
15
15
}
16
16
Arrays .sort (start );
17
17
if (validate (start )) {
18
18
return true ;
19
19
}
20
20
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 ];
22
22
}
23
23
Arrays .sort (start );
24
24
return validate (start );
You can’t perform that action at this time.
0 commit comments