Skip to content

Commit 4f98f47

Browse files
authored
Update the-knights-tour.cpp
1 parent ae75968 commit 4f98f47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/the-knights-tour.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Time: O(m * n)
22
// Space: O(1)
33

4-
// backtracking, warnsdorff's rule
4+
// backtracking, greedy, warnsdorff's rule
55
class Solution {
66
public:
77
vector<vector<int>> tourOfKnight(int m, int n, int r, int c) {

0 commit comments

Comments
 (0)