Skip to content

Commit 8cb965f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent dd3c159 commit 8cb965f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dynamic_programming/longest_increasing_subsequence.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def longest_subsequence(array: list[int]) -> list[int]: # This function is recu
4141
# Else
4242
pivot = array[0]
4343

44-
#Either the subsequence contains the pivot or it doesnt
45-
#The sub_sequence which is longer will be returned
44+
# Either the subsequence contains the pivot or it doesnt
45+
# The sub_sequence which is longer will be returned
4646
without_pivot = longest_subsequence(array[1:])
4747
with_pivot = [element for element in array[1:] if element >= pivot]
4848
with_pivot = [pivot, *longest_subsequence(with_pivot)]

0 commit comments

Comments
 (0)