Skip to content

Commit e6f94e3

Browse files
committed
Sync LeetCode submission Runtime - 773 ms (10.22%), Memory - 90.8 MB (10.54%)
1 parent 02634bd commit e6f94e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

0446-arithmetic-slices-ii---subsequence/solution.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# https://leetcode.com/problems/arithmetic-slices-ii-subsequence/discuss/2851807/Python-two-counting-schemes
44

5+
from collections import defaultdict
6+
57
class Solution:
68
def numberOfArithmeticSlices(self, nums: List[int]) -> int:
79
n = len(nums)

0 commit comments

Comments
 (0)