diff --git a/backtrack/factor_combinations.py b/backtrack/factor_combinations.py index de02b4cef..0eb6fe147 100644 --- a/backtrack/factor_combinations.py +++ b/backtrack/factor_combinations.py @@ -43,7 +43,7 @@ def getFactors(self, n): while i * i <= n: if n % i == 0: combis.append(combi + [i, n/i]), - todo.append(n/i, i, combi+[i]), + todo.append( [n / i, i, combi+[i] ] ) # python3: n // i i += 1 return combis