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 5e4e5bb commit f370f00Copy full SHA for f370f00
src/main/kotlin/g0601_0700/s0695_max_area_of_island/Solution.kt
@@ -7,8 +7,8 @@ package g0601_0700.s0695_max_area_of_island
7
8
@Suppress("NAME_SHADOWING")
9
class Solution {
10
- fun maxAreaOfIsland(grid: Array<IntArray>?): Int {
11
- if (grid.isNullOrEmpty()) {
+ fun maxAreaOfIsland(grid: Array<IntArray>): Int {
+ if (grid.isEmpty()) {
12
return 0
13
}
14
val m = grid.size
0 commit comments