Mental Model
Find the longest sequence of numbers that keeps going up without skipping order.
Analogy: Imagine climbing stairs where each step is higher than the last. You want the longest path going up without stepping down.
Array: [10] -> [22] -> [9] -> [33] -> [21] -> [50] -> [41] -> [60] LIS length at each index: [1] -> [2] -> [1] -> [3] -> [2] -> [4] -> [4] -> [5]
