What is an example (in code) of a O(n!) function? It should take appropriate number of operations to run in reference to n; that is, I\'m asking a
O(n!)
n
In Wikipedia
Solving the traveling salesman problem via brute-force search; finding the determinant with expansion by minors.
http://en.wikipedia.org/wiki/Big_O_notation#Orders_of_common_functions