Mental Model
We look for a number in a grid where each row and column is sorted. We start from the top-right corner and move left or down to find the target.
Analogy: Imagine you are in a library with shelves sorted by book height from left to right and top to bottom. You start at the top-right book and move left if the book is too tall or down if it's too short until you find the right book.
Matrix: 1 4 7 11 2 5 8 12 3 6 9 16 10 13 14 17 Start at ↑ top-right corner (11) Positions: [0,0] -> 1 -> 4 -> 7 -> [0,3] ↑11 ↓ [3,0] 10 -> 13 -> 14 -> 17