Loading topic
dp[i] is the length of the longest increasing subseq6 min readbisect module returns, and be able to read the parent-pointer reconstruction code. The topic here is one decision that is easy to get wrong: what the algorithm 6 min readbisect_left and bisect_right choose between strict and non-decreasing subsequences, and how parent pointers rebuild an actual subsequence. Here you will use that algorit6 min readdp[i] is the length of the longest strictly increasing subsequence ending at index i. It also assumes you are comfortable with Python and Big-O notation, and that you have met a Fenwick tree (binary indexed tre6 min readbisect_left vs bisect_right distinction from earlier chapters. You should also be comfortable reading Python and following a short proof by contradiction. No prior knowledge of order theory is needed. The one definition w7 min read