Monday, February 28, 2011

FizzBuzz

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".

Watch me code at Interview Zen via @interviewzen

Sunday, January 30, 2011

Seven Languages In Seven Weeks Give Away Solution

Translate the following pseudo code into the language of your choice...

  1. Create a collection of names.
  2. Create a function that accepts a collection of names and an adjective and returns a new collection.
  3. The new collection must contain values in the form of, "NAME is so ADJECTIVE." 
  4. Invoke this function.

Friday, April 9, 2010

A Clojure solution for Project Euler - Problem 2

Answer: 4613732

Here is a link to the problem
and here is a link to its groovy solution

Thursday, April 1, 2010

A Clojure solution for Project Euler - Problem 6

Answer: 25164150

Here is a link to the problem
and here is a link to its groovy solution

A Clojure solution for Project Euler - Problem 1

Answer: 233168

Here is a link to the problem
and here is a link to its groovy solution

Tuesday, March 16, 2010

Saturday, March 13, 2010