Happy !

zeroflag / TDD-Kata

Project infos

License MIT
Tags
Creation date 2014-05-14
Website

Monticello registration

About TDD-Kata

FizzBuzz

Write a program that prints the numbers from 1 to n. 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".

RecentlyUsedList

  • A recently-used-list is initially empty.
  • The most recently added item is first.
  • Items can be looked up by index, the most recently used item is moved to the first.
  • Items in the list are unique, so duplicate insertions are moved rather than added.
  • There is an upper limit to the number of items contained, with the least recently added items dropped on overflow.

StringCalculator

Write a program that adds numbers in a string.

Rules

Diamond

Given a letter, print a diamond starting with ā€˜A’ with the supplied letter at the widest point. For example: print-diamond ā€˜C’ prints

  A
 B B
C   C
 B B
  A

More info.