File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
- Longest Arithmetic Subsequence Problem: Given an array nums of integers, return the length
3
- of the longest arithmetic subsequence in nums.
2
+ Longest Arithmetic Subsequence Problem: Given an array nums of integers,
3
+ return the length of the longest arithmetic subsequence in nums.
4
4
5
5
Note that:
6
- - 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 <
9
- seq.length - 1).
6
+ - A subsequence is an array that can be derived from another array by
7
+ deleting some or no 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
9
+ (for 0 <= i < seq.length - 1).
10
10
"""
11
11
12
12
You can’t perform that action at this time.
0 commit comments