Skip to content

Commit 7b6b9a6

Browse files
authored
Update iterator-for-combination.cpp
1 parent a944b58 commit 7b6b9a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

C++/iterator-for-combination.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class CombinationIterator {
1212
}
1313

1414
string next() {
15-
iterative_dfs();
15+
iterative_backtracking();
1616
return curr_;
1717
}
1818

@@ -21,7 +21,7 @@ class CombinationIterator {
2121
}
2222

2323
private:
24-
void iterative_dfs() {
24+
void iterative_backtracking() {
2525
while (!stk_.empty()) {
2626
const auto cb = move(stk_.back());
2727
stk_.pop_back();

0 commit comments

Comments
 (0)