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

Also, after printing 1 to 9, you have a single pattern of 30 numbers that repeats exactly 3 times from 10 to 99, then 30 times from 100 to 999, then 300 times from 1000 to 9999, and so on. That lets you extract lots of code from the loop and run it roughly once every 10^n numbers.


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

Search: