Skip to content

Commit 949c946

Browse files
committed
Fix mypy error for longest_increasing_subsequence
1 parent ec2fa65 commit 949c946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dynamic_programming/longest_increasing_subsequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def longest_subsequence(array: list[int]) -> list[int]: # This function is recu
3636
pivot = array[0]
3737
isFound = False
3838
i = 1
39-
longest_subseq = []
39+
longest_subseq: list[int] = []
4040
while not isFound and i < array_length:
4141
if array[i] < pivot:
4242
isFound = True

0 commit comments

Comments
 (0)