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

Division isn't O(1) for arbitrary values (potentially larger than a machine word).


The same is true for comparison though, isn't it?


Sleep maxes out at 2147483647 = 2^31 seconds. Generally these problems assume the transdichotomous model, where the machine word size matches the problem size.




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

Search: