Y
Hacker News
new
|
ask
|
show
|
jobs
by
mistercow
5224 days ago
That's not N! . N! is (N)(N-1)(N-2)... What you have there is (N)+(N-1)+(N-2)..., which is O(N²)