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

I forgot to multiply the file 10 times. When I do, the result is 0.209 sec. which is still better than every other result.


You are also using a language function to read the file. In the 'official' github implementations they have to accept the data line by line from stdin - stdin likely being slower than reading a file directly.




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

Search: