Greedy Algorithm Applications: Common Problem Solutions
Longest Encreasing Subsequence
The problem can be solved using a greedy approach by maintaining a sequence that represents the smallest possible tail value for all increasing subsequences of each length.
The key insight is that for any increasing subsequence, if we encounter a number that's smaller than the current tail of our sequence, we can ...
Posted on Sat, 16 May 2026 11:27:09 +0000 by mrherman