Translate (AKA immediate implementation problem)
- The problem is obvious that it should just be some data structures
- Segment tree CF474-D2-F
- Just DP, e.g. CF489-D2-F
Converting from brute force
- Sometimes it just works ??? this works especially well if you notice the input is extremely small
- Meet in the middle to be square root smaller CF525-D2-E CF1006-D3-F
- Backtracking to prune states
- Memoization (this is just dp lol)