We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40910bf commit aebba8cCopy full SHA for aebba8c
dynamic_programming/longest_increasing_subsequence.py
@@ -32,6 +32,8 @@ def longest_subsequence(array: list[int]) -> list[int]: # This function is recu
32
[1, 1, 1]
33
>>> longest_subsequence([])
34
[]
35
+ >>> longest_subsequence([28, 26, 12, 23, 35, 39])
36
+ [12, 23, 35, 39]
37
"""
38
array_length = len(array)
39
# If the array contains only one element, we return it (it's the stop condition of
0 commit comments