MCPcopy Create free account
hub / github.com/codedecks-in/LeetCode-Solutions / isValid

Method isValid

C++/Unique-Paths-III.cpp:9–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 int required = 0;
8
9 bool isValid(int x, int y) {
10 return (0 <= x && x < n) && (0 <= y && y < m);
11 }
12
13 void dfs(vector<vector<int>> &grid, pair<int, int> s, pair<int, int> e, vector<pair<int, int>>& st, vector<vector<bool>> &used) {
14 if (!st.empty() && st.back() == e && st.size() == required - 1) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected