Better HN
top
new
best
ask
show
jobs
Log in
Sign up
hamzalive
1 karma · joined Apr 28, 2016 (10y ago) · 1 submissions
Submissions
comment 10y ago ·
link
·
parent
200010000 not 199990000 probably the author looped on a 0-based index. n*(n+1)/2 is even better ^^ Nice post mortem though