Coding Interview Mastery
Interactive visualizer · 10 essential patterns · Big O reference
Coding Quiz
12 questions · 80% to pass
UnsortedComparingSwappingSorted
40
87
14
40
39
37
38
55
66
69
73
93
66
72
47
56
Step 1 / 00% complete
Speed
Bubble Sort
Time: O(n²)
Space: O(1)
Simple, stable. Good teaching tool, bad in practice.
Selection Sort
Time: O(n²)
Space: O(1)
Minimizes swaps. Not stable. Slightly better than bubble.
Insertion Sort
Time: O(n²) worst, O(n) best
Space: O(1)
Excellent for nearly-sorted data. Used in Timsort internals.