Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ByteByteGoHq/coding-interview-patterns
/ is_within_bounds
Function
is_within_bounds
python3/Graphs/count_islands.py:29–30 ·
view source on GitHub ↗
(r: int, c: int, matrix: List[List[int]])
Source
from the content-addressed store, hash-verified
27
dfs(next_r, next_c, matrix)
28
29
def
is_within_bounds(r: int, c: int, matrix: List[List[int]]) -> bool:
30
return
0 <= r < len(matrix) and 0 <= c < len(matrix[0])
Callers
1
dfs
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected