Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ByteByteGoHq/coding-interview-patterns
/ isWithinBounds
Function
isWithinBounds
kotlin/Graphs/CountIslands.kt:35–37 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
33
}
34
35
fun isWithinBounds(r: Int, c: Int, matrix: MutableList<MutableList<Int>>): Boolean {
36
return r in matrix.indices && c in matrix[0].indices
37
}
Callers
1
dfs
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected