Category Archives: Katas

The Cube

You just watched the movie ’Cube’ before going to bed. Bad idea – you find yourself in a nightmare where you are also put in a huge cube which has 6 doors. But fortunately you remember an idea from the … Continue reading

Caesar plays Lottery

Write a method to convert a number between 1 and 50 to its Roman numeral equivalent. (for example: 2 = ’II’, 10 = ’X’, 25 = ’XXV’, 50 = ’L’) Coding Kata <html> <body> <script type=”text/javascript”> function deromanize( roman ) … Continue reading

NASA Countdown

The NASA wants to shoot yet another rocket to the orbit. As this is your first day as a wannabe scientist at the ground control, you are very excited. So excited that when the guy responsible for the countdown asks … Continue reading

Tea Party

Your task is to welcome your guests properly: Some are female and some were knighted by the queen. So greet them correctly – or this will be your last hosting. For example: -Jane Austen is a women, so say Hello … Continue reading

Fibonacci Killer

Calculate the missing Fibonacci numbers in order to predict where that murderer is gonna strike next! Coding Kata <script type=”text/javascript”> var runlimit = 12; var num1=0, num2=1, ans; function getNextFib(){ ans = (num1 + num2); num1 = num2; num2 = … Continue reading

Fuzz Buzz

Any number divisible by three is replaced by the word fizz and any divisible by five by the word buzz. Numbers divisible by both become fizzbuzz. A player who makes a mistake has to take a drink. Einstein will choose … Continue reading