one fable-low hijack cell
pair island / kotlin
envelope en_pipe
ordering AB
effort low
English with pipe '|' — '{X} | {Y}'
verdictpicked island (first-offered)
· classifierA
· tiernone
response (200 chars)
# Number of Islands in Kotlin
A classic problem: count islands in a 2D grid where `'1'` is land and `'0'` is water (connected horizontally/vertically).
## DFS Solution
```kotlin
fun numIslands(grid
neighbors