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

That produces an unavoidable special case when the number of elements in the list is a prime number.


Just pad the end of the list with 0s, but keep the original size of the list.




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

Search: