about | help | code help+videos | done | prefs |
The given string will have a length of 6 or less integer values. If the length is 3 or less, simply return that string. Otherwise return a string identical to the original except that a comma has been added between the hundredths and thousandths places. addComma("12345") → "12,345" addComma("987654") → "987,654" addComma("45") → "45" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy