4 ms·
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
by fiddlerwoaroof 6y 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?"
- kazinator 6y agoFizzBuzz also has zero practical value, yet it will filter out people who can't code.
- fiddlerwoaroof 6y agoBut, 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".
- mrits 6y agoThat 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.