Length of Longest V-Shaped Diagonal Segment
A Hard coding interview problem in the 2-D Dynamic Programming pattern.
Likely pattern
State over two indices: grids, two strings, or item and capacity.
Recognition cue: Compare two sequences, walk a grid, or choose items under a budget.
- Learn first
- Do not confuse it with
Topics
- Array
- Dynamic Programming
- Memoization
- Matrix
Practise 2-D Dynamic Programming next
- 1Hard
- 2Hard
- 3Hard
- 4Hard
- 5Hard
- 6Hard
- 7Hard
- 8Hard