Here’s a version of FizzBuzz unlikely to be requested at a job interview. Forth is a stack-based language (like PostScript), which means you’ll be right at home if you’ve ever used a RPN-based HP calculator. Continue reading “FizzBuzz in Forth”
FizzBuzz in Clojure
Following up on FizzBuzz in Common Lisp, here’s FizzBuzz (the extended version) in Clojure. See my previous entry for more on FizzBuzz and what’s going on here.
FizzBuzz in Common Lisp
FizzBuzz is a famous recruitment interview question for programmers.
Write a program that prints the numbers from 1 to 100. But for multiples of three, print “Fizz” instead of the number and for the multiples of five, print “Buzz”. For numbers which are multiples of both three and five, print “FizzBuzz”.
I imagine it can be used to weed out the ones who lied about everything on their application, since it is not exactly brain science nor rocket surgery. Continue reading “FizzBuzz in Common Lisp”