MCPcopy 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
46bool 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

matrixInfectionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected