Skip to content

Commit 9576873

Browse files
committed
Runtime: 95 ms (Top 8.35%) | Memory: 14.1 MB (Top 29.67%)
1 parent 6a8112e commit 9576873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 95 ms (Top 8.35%) | Memory: 14.1 MB (Top 29.67%)
12
class Solution:
23
def numRabbits(self, answers: List[int]) -> int:
34
# store ans in ans_map
@@ -6,4 +7,3 @@ def numRabbits(self, answers: List[int]) -> int:
67
for ans, count in ans_map.items():
78
total += (ans + 1) * ceil(count / (ans + 1))
89
return total
9-

0 commit comments

Comments
 (0)