We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf444d6 commit 3198708Copy full SHA for 3198708
dynamic_programming/longest_arithmetic_subsequence.py
@@ -1,11 +1,11 @@
1
"""
2
-Longest Arithmetic Subsequence Problem: Given an array nums of integers, return the length
+Longest Arithmetic Subsequence Problem: Given an array nums of integers, return the length
3
of the longest arithmetic subsequence in nums.
4
5
Note that:
6
-- A subsequence is an array that can be derived from another array by deleting some or no
+- A subsequence is an array that can be derived from another array by deleting some or no
7
elements without changing the order of the remaining elements.
8
-- A sequence seq is arithmetic if seq[i + 1] - seq[i] are all the same value (for 0 <= i <
+- A sequence seq is arithmetic if seq[i + 1] - seq[i] are all the same value (for 0 <= i <
9
seq.length - 1).
10
11
0 commit comments