๐ฎ 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โ
- Time
linearfor growing n โ does doubling n double the time? - Add an O(n log n) function (e.g. sorting) and compare.
- Why do constants and lower-order terms drop out of Big-O?
Continue the learning path โ Arrays And Strings