Skip to content

Commit

Permalink
Update Solution.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
javadev authored Mar 31, 2023
1 parent 5e4e5bb commit f370f00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package g0601_0700.s0695_max_area_of_island

@Suppress("NAME_SHADOWING")
class Solution {
fun maxAreaOfIsland(grid: Array<IntArray>?): Int {
if (grid.isNullOrEmpty()) {
fun maxAreaOfIsland(grid: Array<IntArray>): Int {
if (grid.isEmpty()) {
return 0
}
val m = grid.size
Expand Down

0 comments on commit f370f00

Please sign in to comment.