Algorithms

Exponential time

When an algorithm's work doubles every time 1 item is added: O(2ⁿ). It grows so fast that with little data it's already unusable.

Example

Trying every combination of 30 objects is 2³⁰: over 1 billion. With 31 objects, twice that.

Test yourself: Exponential time

Time complexity

In O(2ⁿ), adding 1 to n ___ the work.

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.