Live data from Hacker News

Sorting Algorithm Cheat Sheet

interviewcake.com

51–52 of 52 posts

Re: Sorting Algorithm Cheat Sheet

#51
post #15

Earlier quoted context omitted.

It's the number of bits. You can change to bytes, but you are just hiding another constant factor of 8 by doing that.

If you have a theoretical computer with single-bit registers, sure. Quicksort is also quite slow on such an computer.

Big O is hardware independent.

Re: Sorting Algorithm Cheat Sheet

#52
post #14

Earlier quoted context omitted.

Disagree. If you think that, what do you ask? "How would you Google or Stack overflow for the answer?" That's hardly going to provide any useful signal. At the end of the day you need to ask something that shows evidence there candidate knows something about efficiency tradeoffs.

Sorting algorithm complexity and implementation is rote-learnt at this point. Hardly tells you much. Traditional technical interviews don't seem to help you find the best candidates (Google famously studied their interview process and decided it was no better than chance). So maybe don't do a technical interview. Or if you do, just take a couple of real problems from work. If you're making a lot of hires, do some res…

I get the feeling that the people who don't like algorithms interviews are also the people who find them difficult to pass.

Go ahead and memorize, it'll be obvious if you can't explain how you got that answer.

Post reply on HN