We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5da4f3d commit 0ab388cCopy full SHA for 0ab388c
minimum_steps_to_reach_target.cpp
@@ -29,7 +29,7 @@ class Solution
29
int dx[8] = {-2, -2, 2, 2, -1, 1, -1, 1};
30
int dy[8] = {-1, 1, -1, 1, -2, -2, 2, 2};
31
32
- vector<vector<bool> > visited(N + 1, vector<bool>(N + 1, false));
+ vector<vector<bool> > visited(N + 1, vector<bool>(N + 1, false));
33
34
q.push(Node(KnightPos[0], KnightPos[1], 0));
35
0 commit comments