0

Sorting

A preprocessing step that unlocks two pointers, greedy and binary search.

Newinterview weight 708 problems7 visualisers
18
mastery
Attempts logged
0
Predicted success on the next one
33%
Solved here
0 / 8

What you actually need to hold in your head

  • Comparison sorts bottom out at O(n log n)
  • Counting and radix beat that on small key spaces
  • Stability matters when sorting by multiple keys
  • Custom comparators encode the greedy choice

Watch it run

Step through the algorithm before you write it.

Patterns in this topic

The trigger phrases are what you are training yourself to notice.

Sorting problems

Ordered by sheet phase, so the early ones are the highest signal.

0 / 8 solved
1
2
3
4
5
MSorting
6
7
8