Skip to content

Glossary: Coding Interviews

Exponential time

Also written: O(2ⁿ), 2ⁿ

A running time where the work doubles with every extra item. It is fine only for inputs up to about 20, as with listing every subset.

Where the book teaches it

Related terms

BacktrackingBig-OSubset