Skip to content

Commit aebba8c

Browse files
Update longest_increasing_subsequence.py
1 parent 40910bf commit aebba8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dynamic_programming/longest_increasing_subsequence.py

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def longest_subsequence(array: list[int]) -> list[int]: # This function is recu
3232
[1, 1, 1]
3333
>>> longest_subsequence([])
3434
[]
35+
>>> longest_subsequence([28, 26, 12, 23, 35, 39])
36+
[12, 23, 35, 39]
3537
"""
3638
array_length = len(array)
3739
# If the array contains only one element, we return it (it's the stop condition of

0 commit comments

Comments
 (0)