Algorithms

Time complexity

How an algorithm's running time grows as the amount of data grows. It's written with Big O.

Example

Adding up a list is O(n): with 1,000 numbers, 1,000 additions; with 2,000, 2,000.

Test yourself: Time complexity

Measuring efficiency

An algorithm keeps a full copy of the data to go faster. What does it spend more of?

Lessons that use it

More algorithms terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.