LeetCode 300. Longest Increasing Subsequence — Python Solution

Nicholas Wade
CodeX
Published in
2 min readJul 11, 2022

--

Blind 75 — Programming & Technical Interview Questions — Explanation Series

The problem:

The explanation:

The is always the brute solution using depth-first search O(2^n). Then comes the dynamic programming solution O(n²). The is also another O(nlogn) solution that I will not explain since…

--

--

Nicholas Wade
CodeX
Writer for

CS @ Purdue | Interested In ML, Autonomy, Reinforcement Learning