Skip to content

Glossary: Algorithms Beyond the Basics in Java

factorial (n!)

Also written: n!, n factorial

The product n × (n−1) × … × 1, which counts the orderings of n items (3 items give 6). It grows even faster than 2ⁿ.

Where the book teaches it

Related terms

permutationsubset