We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02634bd commit e6f94e3Copy full SHA for e6f94e3
0446-arithmetic-slices-ii---subsequence/solution.py
@@ -2,6 +2,8 @@
2
3
# https://leetcode.com/problems/arithmetic-slices-ii-subsequence/discuss/2851807/Python-two-counting-schemes
4
5
+from collections import defaultdict
6
+
7
class Solution:
8
def numberOfArithmeticSlices(self, nums: List[int]) -> int:
9
n = len(nums)
0 commit comments