Skip to content

Commit

Permalink
fix factor_combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
yunshuipiao committed Feb 5, 2018
1 parent 0c8fcce commit 02cb0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backtrack/factor_combinations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 02cb0fe

Please sign in to comment.