Should I hire a programmer who could not order an array of integers using a sorting algorithm?

Should I hire a programmer who could not order an array of integers using a sorting algorithm?

Would you be asking, should you hire a programmer who can't write a sorting algorithm on a whiteboard?

Because I write code almost every day, and the last time I wrote a sorting algorithm was 2007.

Almost no one writes sorting algorithms in professional programming anymore.

And yes, I absolutely CAN write quicksort, bubblesort, etc. off the top of my head. Only because I'm old and did this when I was a kid.

I can tell you why it’s better to choose the middle value for the pivot, or even the median of the first, middle, and last value, in quicksort. I can even tell you the cases in which bubblesort beats quicksort in a footrace.

But then you might use those things as interview questions, which would be bad.

The intersection between the set of interview questions and the set of trivia questions should be null.

To view or add a comment, sign in

Insights from the community

Others also viewed

Explore topics