HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by randcraw | Hacker News Reader
Parent
Full thread
randcraw
·
Isn't that factorial, and much more costly than quadratic?
View on HN
dzamo_norton
·
N choose 2 = N! / 2!(N-2)! = N(N-1) / 2.
Reply on news.ycombinator.com