Problem 44293. Write out numbers in words
Solution Stats
Problem Comments
-
3 Comments
Nice problem --- it could use a few more test cases though, especially corner cases like 1000, 1001, 1010 and so on.
Test cases have been added to the problem.
Thanks, Dyuman!
Solution Comments
-
2 Comments
First time seeing the use of dictionary on Cody. Nice!
@Dyuman thanks! I've actually used them regularly --- a quick grep suggests they appear in my solutions for problems 53, 65, 213, 303, 639, 831, 980, 1203, 1378, 1686, 1696, 1836, 1889, 2147, 2153, 2162, 2186, 2227, 2447, 2508, 2524, 3053, 42316, 42370, 42613, 43668, 44293, 44669, 45262, 45365, 46913, 51675, 52298, and 56623 at least, though the list may be incomplete since I don't have all my solutions saved locally. Of these, solution 9223510 to problem 53, submitted on October 5 2022, is the oldest one I have that uses a dictionary.
Problem Recent Solvers8
Suggested Problems
-
Return a list sorted by number of occurrences
2131 Solvers
-
181 Solvers
-
584 Solvers
-
581 Solvers
-
209 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!