7 kyu
Name That Number!
292 of 1,411DanWaxman
Description:
In this kata, you'll be given an integer of range 0 <= x <= 99
and have to return that number spelt out in English. A few examples:
nameThatNumber(4) // returns "four"
nameThatNumber(19) // returns "nineteen"
nameThatNumber(99) // returns "ninety nine"
Words should be separated by only spaces and not hyphens. No need to validate parameters, they will always be in the range [0, 99]. Make sure that the returned String has no leading of trailing spaces. Good luck!
Fundamentals
Similar Kata:
Stats:
Created | Jul 29, 2016 |
Published | Jul 29, 2016 |
Warriors Trained | 3330 |
Total Skips | 94 |
Total Code Submissions | 7249 |
Total Times Completed | 1411 |
Java Completions | 292 |
Python Completions | 563 |
JavaScript Completions | 608 |
Total Stars | 34 |
% of votes with a positive feedback rating | 85% of 263 |
Total "Very Satisfied" Votes | 196 |
Total "Somewhat Satisfied" Votes | 55 |
Total "Not Satisfied" Votes | 12 |