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

dfsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected