Lesson 24 of 26 · about 17 min
How fast is my code?
Instead of timing code with a stopwatch, count how the number of steps grows as the input grows. That growth, written as Big-O, tells you whether code will still be fast with a million items.
🔓 Unlock this lesson
This lesson is part of the DoingCamp Pass. Members get every lesson in every course, with all the interactive visuals, coding exercises and challenges.
In this lesson you'll learn:
- Big-O
- Linear vs binary search
- Sorting cost
Free to try in F02 Programming 1: Thinking in Steps:
The first 3 lessons of every course are free, no account needed.