We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e589447 commit 6911887Copy full SHA for 6911887
src/main/kotlin/g3301_3400/s3394_check_if_grid_can_be_cut_into_sections/Solution.kt
@@ -25,8 +25,8 @@ class Solution {
25
Comparator { a: IntArray, b: IntArray -> if (a[0] == b[0]) a[1] - b[1] else a[0] - b[0] },
26
)
27
28
- yAxis.sortWith<IntArray?>(
29
- Comparator { a: IntArray?, b: IntArray? -> if (a!![0] == b!![0]) a[1] - b[1] else a[0] - b[0] },
+ yAxis.sortWith<IntArray>(
+ Comparator { a: IntArray, b: IntArray -> if (a[0] == b[0]) a[1] - b[1] else a[0] - b[0] },
30
31
val verticalCuts = findSections(xAxis)
32
if (verticalCuts > 2) {
0 commit comments