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

> it's also technically O(exp N) as well.

I wonder if this is what one interviewer was trying to get at when he asked me over and over again if a binary search was worst case O(log N). I just kept saying that if you took more than log N steps to perform a binary search then you by definition did not perform a binary search. He was off his rocker so I kind of doubt he was looking for the difference between little-o, theta, and big-O. It's good stuff to remember and might impress a more sane interviewer some day though.



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

Search: