Hacker News new | past | comments | ask | show | jobs | submit login

200010000 not 199990000 probably the author looped on a 0-based index. n*(n+1)/2 is even better ^^ Nice post mortem though



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: