Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
dontknowshit17413dYou are just a 10xer!!
But seriously, fizz buzz was usually just used to see if you “can” code. Not to test if you are a super 10x coder.
WildPotato19013dThe Wikipedia page you linked has you covered:
"Writing a program to output the first 100 FizzBuzz numbers is a trivial problem for any would-be computer programmer, so interviewers can easily filter out those with insufficient programming ability."
So I guess it's just to weed out those who can't even code a fizzBuzz.
EmberQuill180612dFizzbuzz is mostly used to weed out people who absolutely should not be developers at all. It's trivial, so if you fail, they can immediately discard your application.
It's also sometimes used in the opposite way, to find people who try to hard to be clever, people who think the obvious solution isn't clean or elegant enough. Too many if statements. Why check each value twice? "Clever" people try all sorts of tricks to shorten the code and it usually ends up looking awful. The most elegant solution to the problem is (as far as I've seen) the completely obvious one, and developers who can't accept that are likely to be the kind of developers who get stuck on a small, low-priority issue and spend way too much time trying to fix it.
I interviewed for an internship in college and (a year and a half ago now), the interview problem was to find the second largest value in an array. I wrote the function in like 1 minute, at the end I was so confused because I assumed everyone else interviewing was passing it as well, so I thought it must have been a terrible interview question. After getting and accepting the job I asked why they asked that question, apparently only 5 out of around 50 people solved it... and only I did it quickly. I’m blown away that people can’t do stuff like this. I’m a mostly self taught person so I don’t know why other people (CS majors no less) can’t do this