Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Don't divide by two. Order matters.

And that +1 is going the wrong way so you might as well just say n^2.



Oh, right, duh. Yeah it’s just n^2.

(If it was n+(n-1)+…+1, then my equation would have been correct, but you’re right, since order matters it’s just plain n^2.)




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

Search: