Skip to content

Glossary: Algorithms Beyond the Basics in C++

factorial (n!)

Also written: n!, factorial

n × (n − 1) × ... × 1, the number of ways to order n items. It grows much faster than 2ⁿ, so listing all orders only suits about 10 items.

Where the book teaches it