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

If you store the number of zeros as value z, computing z+1 is O(log n) in the long run for unbounded values of z.


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

Search: