Skip to content

Commit 0ab388c

Browse files
Update minimum_steps_to_reach_target.cpp
1 parent 5da4f3d commit 0ab388c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

minimum_steps_to_reach_target.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Solution
2929
int dx[8] = {-2, -2, 2, 2, -1, 1, -1, 1};
3030
int dy[8] = {-1, 1, -1, 1, -2, -2, 2, 2};
3131

32-
vector<vector<bool> > visited(N + 1, vector<bool>(N + 1, false));
32+
vector<vector<bool> > visited(N + 1, vector<bool>(N + 1, false));
3333

3434
q.push(Node(KnightPos[0], KnightPos[1], 0));
3535

0 commit comments

Comments
 (0)