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