• + 2 comments

    You only need to map 1-13,15,18,20,30,40 and 50. Then everything is either in the map, or a combination of ('twenty' + 'three') or a teen ('seven' + 'teen').

    Still, a giant pain to code, but actually a good program for new coders to think of all the conditions, and try to write the most elegant solution (i.e. don't map out every minute!)