Hacker News new | ask | show | jobs
by randcraw 807 days ago
Isn't that factorial, and much more costly than quadratic?
1 comments

N choose 2 = N! / 2!(N-2)! = N(N-1) / 2.