Skip to main content

๐ŸŽฎ Big-O (Practice)

Companion to the Big-O & Complexity guide. Measure how runtime actually scales โ€” theory meets the stopwatch. Edit and run the code right here โ€” it executes in your browser.

๐Ÿ Your turnโ€‹

Loading editorโ€ฆ

๐Ÿง  Challenge yourselfโ€‹

  1. Time linear for growing n โ€” does doubling n double the time?
  2. Add an O(n log n) function (e.g. sorting) and compare.
  3. Why do constants and lower-order terms drop out of Big-O?

Continue the learning path โ†’ Arrays And Strings