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