We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7346d7 commit 5da4f3dCopy full SHA for 5da4f3d
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