Skip to content

Commit a944b58

Browse files
authored
Update iterator-for-combination.py
1 parent f0bed13 commit a944b58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/iterator-for-combination.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ def __init__(self, characters, combinationLength):
4343
"""
4444
self.__characters = characters
4545
self.__combinationLength = combinationLength
46-
self.__it = self.__iterative_dfs()
46+
self.__it = self.__iterative_backtracking()
4747
self.__curr = None
4848
self.__last = characters[-combinationLength:]
4949

50-
def __iterative_dfs(self):
50+
def __iterative_backtracking(self):
5151
def conquer():
5252
if len(curr) == self.__combinationLength:
5353
return curr

0 commit comments

Comments
 (0)