Search in a row wise and column wise sorted matrix
Search in a row wise and column wise sorted matrix (alt) is simple if you keep it on paper. Sara uses it for names A→Z in the roll list.
Do Search in a row wise and column wise sorted matrix (alt) once by hand. n log n vs n². Change one input. Say the new result out loud.
Search in a row wise and column wise sorted matrix (alt) exists so Sara can keep names A→Z correct in the roll list.
Search in a row wise and column wise sorted matrix (alt) shows up in the roll list. Name names A→Z, not “a real-world scenario”.
Don’t do this with Search in a row wise and column wise sorted matrix (alt): unstable sort when equal keys matter. Interviewers spot it in ten seconds.
Search in a row wise and column wise sorted matrix (alt) is not a lonely heading. Sara ties it to names A→Z.
One breath for Search in a row wise and column wise sorted matrix (alt), then names A→Z, then unstable sort when equal keys matter. Sit down.
For Search in a row wise and column wise sorted matrix (alt): definition + the roll list + one failure.