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

There is a very large difference between what you write and what your computer actually does.

Something may look like it is O(1) but in reality it may be much slower. The only way to find out is to put the program through its paces with various values for 'n', and to measure the time it took to compute the answer.

Prepare to be surprised.



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

Search: