We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0447ce commit 444220dCopy full SHA for 444220d
dynamic_programming/longest_increasing_subsequence.py
@@ -46,7 +46,7 @@ def longest_subsequence(array: list[int]) -> list[int]: # This function is recu
46
while not is_found and i < array_length:
47
if array[i] < pivot:
48
is_found = True
49
- temp_array = [element for element in array[i:]]
+ temp_array = array[i:]
50
temp_array = longest_subsequence(temp_array)
51
if len(temp_array) > len(longest_subseq):
52
longest_subseq = temp_array
0 commit comments