- Write beautiful code, and comment when necessary to help explain to others what you've done
- Each Kata has its own goals. Sometimes you'll want to create the least amount of code necessary. Other times you'll want to create the most efficient code.
- Kata is about learning new techniques. Be original. Be innovative. Learn something. Teach something.
FizzBuzz is an old school kata that we found from the awesome CODING HORROR website, found here: http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html
It's a great first question in an interview. I've been asked similiar questions in interviews, so be ready!
- Print the numbers from 1 to 100.
- For every number divisible by 3, print "Fizz" instead of the number.
- For every number divisible by 5, print "Buzz" instead of the number.
- For every number divisible by 3 and 5, print "FizzBuzz" instead of the number.
- Once you've completed your code, edit this Gist, add a new file (use your name/username for the filename), select your code type and paste your code.
- Come back to the CodeKata.co website, and link to your revision in the comments.
- ???
- PROFIT!!!