We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2883a97 commit 3f9bc29Copy full SHA for 3f9bc29
dynamic_programming/longest_arithmetic_subsequence.py
@@ -48,7 +48,7 @@ def longest_arithmetic_subsequence(nums: list[int]) -> int:
48
if len(nums) == 1:
49
return 1
50
51
- ddp: list[dict[int, int]] = [{} for _ in range(len(nums))]
+ dp: list[dict[int, int]] = [{} for _ in range(len(nums))]
52
max_length = 2
53
54
for i in range(len(nums)):
0 commit comments