Hacker News new | ask | show | jobs
by fiddlerwoaroof 2042 days ago
Part of the problem with things like "implement Bubble Sort" is that most actual programming tasks are "here's a problem, find the best implementation". There aren't many sorting tasks where Bubble Sort is an appropriate implementation: a _better_ interview question would be "here's a list of numbers, sort them without using a standard library function." Followed by "what are some advantages/disadvantages of the method you used? Can you think of a better way to do this?"
2 comments

That isn't a bad interview question but certainly not _better_. It's perfectly understandable for some shops to want to filter out people that don't practice fundamentals from time to time. We all have our own predictors of success and they all suck in different ways.
FizzBuzz also has zero practical value, yet it will filter out people who can't code.
But, the question is formulated like a normal programming task: it's not "implement this algorithm" it's "come up with a program that removes numbers that meet this specification".