Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ByteByteGoHq/coding-interview-patterns
/ isWithinBounds
Function
isWithinBounds
cpp/Graphs/count_islands.cpp:37–39 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
35
}
36
37
bool isWithinBounds(int r, int c, std::vector<std::vector<int>>& matrix) {
38
return r >= 0 && r < matrix.size() && c >= 0 && c < matrix[0].size();
39
}
Callers
1
dfs
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected