We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3ab689 commit bff4efeCopy full SHA for bff4efe
Python/24-game.py
@@ -67,7 +67,7 @@ def dfs(nums):
67
next_nums = [nums[k] for k in xrange(len(nums)) if i != k != j]
68
for op in ops:
69
if ((op is add or op is mul) and j > i) or \
70
- (op == truediv and nums[j] == 0):
+ (op == div and nums[j] == 0):
71
continue
72
next_nums.append(op(nums[i], nums[j]))
73
if dfs(next_nums):
0 commit comments