start‎ > ‎

code-tdd

Take a number and give the equivalent number in british english words e.g.

1 = one

21 = twenty one

105 = one hundred and five

781 = seven hundred and eighty one

etc.. up to 999 without using a tokenizer, or any external libraries

Realize the solution via TDD: Test first, make it fail and make it work.

Comments