Skip to content

Commit 6911887

Browse files
committed
Improved task 3394
1 parent e589447 commit 6911887

File tree

1 file changed

+2
-2
lines changed
  • src/main/kotlin/g3301_3400/s3394_check_if_grid_can_be_cut_into_sections

1 file changed

+2
-2
lines changed

src/main/kotlin/g3301_3400/s3394_check_if_grid_can_be_cut_into_sections/Solution.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class Solution {
2525
Comparator { a: IntArray, b: IntArray -> if (a[0] == b[0]) a[1] - b[1] else a[0] - b[0] },
2626
)
2727

28-
yAxis.sortWith<IntArray?>(
29-
Comparator { a: IntArray?, b: IntArray? -> if (a!![0] == b!![0]) a[1] - b[1] else a[0] - b[0] },
28+
yAxis.sortWith<IntArray>(
29+
Comparator { a: IntArray, b: IntArray -> if (a[0] == b[0]) a[1] - b[1] else a[0] - b[0] },
3030
)
3131
val verticalCuts = findSections(xAxis)
3232
if (verticalCuts > 2) {

0 commit comments

Comments
 (0)