PythiloMedium · 25 min · Task 59 of 100 · progress kept in this browser

Longest increasing subsequence

Return the length of the longest strictly increasing subsequence of integers. The subsequence need not be contiguous.

from bisect import bisect_left
tails = [2, 5, 7]
position = bisect_left(tails, 3)
tails[position] = 3
print(tails)
Your task

Return the length of the longest strictly increasing subsequence of integers. The subsequence need not be contiguous.