MCPcopy 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
35fun isWithinBounds(r: Int, c: Int, matrix: MutableList<MutableList<Int>>): Boolean {
36 return r in matrix.indices && c in matrix[0].indices
37}

Callers 1

dfsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected