Coding Interview Mastery
Interactive visualizer · 10 essential patterns · Big O reference
Coding Quiz
12 questions · 80% to pass
UnsortedComparingSwappingSorted
27
85
72
63
77
16
91
16
29
16
99
93
28
77
71
98
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.