O(n!)

Home > Computer Science > Algorithms and data structures > Big O Notation > O(n!)

This represents factorial time complexity and is the slowest of all. It means that the execution time increases by a factor of n! (n factorial) as the input size increases. Examples include brute force algorithms that test every permutation of inputs.