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

This is only for algorithms whose output is solely dependent on the outcomes of comparisons of input values.

Otherwise you can for instance sort an input made of zeroes and ones in O(n) time and O(log(n)) space by counting the ones.



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

Search: