Skip to content
DSA Visualizerpreview

Big-O growth

Six common growth rates drawn side by side; scrub n and watch them pull apart.

how steps grow with n time · how memory grows with n space

Largest n20

With one item, every algorithm does about one step. The differences only show as n grows.

View
Steps at n = 1: O(1) 1, O(log n) 0, O(n) 1, O(n log n) 0, O(n²) 1, O(2ⁿ) 2.

Steps at n = 1: O(1) 1, O(log n) 0, O(n) 1, O(n log n) 0, O(n²) 1, O(2ⁿ) 2.

  • compare
  • swap or write
  • settled

1 / 20

Speed

Space play · ← → step · Home End jump · drag the strip to scrub