Skip to content

Commit 506161a

Browse files
committed
line length shortened
1 parent ab88a43 commit 506161a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dynamic_programming/longest_arithmetic_subsequence.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""
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.
44
55
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).
1010
"""
1111

1212

0 commit comments

Comments
 (0)