Skip to content

Commit 2079c5e

Browse files
authored
Merge pull request AllenDowney#43 from marked/master
cartalk1.py patch to add backtracking
2 parents d505f11 + 3ab48f8 commit 2079c5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

code/cartalk1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def is_triple_double(word):
2828
return True
2929
i = i + 2
3030
else:
31+
i = i + 1 - 2*count
3132
count = 0
32-
i = i + 1
3333
return False
3434

3535

0 commit comments

Comments
 (0)