Skip to content

Commit 45a3a3c

Browse files
authored
Update largest-multiple-of-three.py
1 parent 853a2cb commit 45a3a3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/largest-multiple-of-three.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ def largestMultipleOfThree(self, digits):
1111
:rtype: str
1212
"""
1313
lookup = {0: [],
14-
1: [(1,), (4,), (7,), (2, 2), (2, 5), (5, 5), (2, 8), (5, 8), (8, 8)],
15-
2: [(2,), (5,), (8,), (1, 1), (1, 4), (4, 4), (1, 7), (4, 7), (7, 7)]}
14+
1: [(1,), (4,), (7,), (2, 2), (5, 2), (5, 5), (8, 2), (8, 5), (8, 8)],
15+
2: [(2,), (5,), (8,), (1, 1), (4, 1), (4, 4), (7, 1), (7, 4), (7, 7)]}
1616
count = collections.Counter(digits)
1717
for deletes in lookup[sum(digits)%3]:
1818
delete_count = collections.Counter(deletes)

0 commit comments

Comments
 (0)