Lessons
C++ · Algorithm Foundations · 29. How Fast Is It?

step 1 of 7

Count my steps

Speed is not about how many lines you write. It is how many steps I take. One loop over n things is n steps.

Mission

Make n 1000 and RUN. How many steps now?

PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
12
← press me!
readyscreen

Press RUN to see what this program does.

Do the mission and Next turns green.

How Fast Is It?