Skip to content

Commit efbd026

Browse files
committed
Update 94. 24 点游戏.md
1 parent a225221 commit efbd026

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

94. 24 点游戏.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Solution:
1212
#递归终止条件
1313
if len(nums) == 1:
1414
return abs(nums[0] - TARGET) < EPSILON
15+
#各种情况
1516
for i, x in enumerate(nums):
1617
for j, y in enumerate(nums):
1718
if i != j:
@@ -33,9 +34,11 @@ class Solution:
3334
if solve(newNums):
3435
return True
3536
newNums.pop()
36-
return False
3737
#调用递归
38-
return solve(nums)
38+
flag = solve(nums)
39+
if flag == True:
40+
return True
41+
return False
3942
```
4043

4144
```

0 commit comments

Comments
 (0)