Hacker News new | ask | show | jobs
by kelukelugames 4068 days ago
If I get asked fizzbuzz in an interview then I'm going to drive my interviewer insane with a switch statement.

case 0:

  print "fizzbuzz";
case 1:

  print 1;
case 2:

  print 2;
case 3:

  print "fizz";
1 comments

Your solution failed to satisfy the requirements. You need to print the number for 1 and 2.
thanks!