Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Factorial (n!)

Also written: n!, n factorial

The product of all whole numbers from 1 up to n. It counts the possible orders of n items, so three cafés have 3! = 6 routes.

Where the book teaches it

Related terms

Permutation