6 kyu
Grouped by commas
3,623 of 10,725agram
Description:
Finish the solution so that it takes an input n
(integer) and returns a string that is the decimal representation of the number grouped by commas after every 3 digits.
Assume: 0 <= n <= 2147483647
Examples
1 -> "1"
10 -> "10"
100 -> "100"
1000 -> "1,000"
10000 -> "10,000"
100000 -> "100,000"
1000000 -> "1,000,000"
35235235 -> "35,235,235"
Algorithms
Similar Kata:
Stats:
Created | Nov 2, 2013 |
Published | Nov 2, 2013 |
Warriors Trained | 15599 |
Total Skips | 1089 |
Total Code Submissions | 33250 |
Total Times Completed | 10725 |
Ruby Completions | 1166 |
JavaScript Completions | 3908 |
Haskell Completions | 293 |
Python Completions | 3623 |
R Completions | 173 |
Scala Completions | 156 |
C# Completions | 564 |
Julia Completions | 36 |
C Completions | 201 |
NASM Completions | 20 |
PHP Completions | 375 |
C++ Completions | 539 |
COBOL Completions | 5 |
Total Stars | 181 |
% of votes with a positive feedback rating | 93% of 1191 |
Total "Very Satisfied" Votes | 1041 |
Total "Somewhat Satisfied" Votes | 126 |
Total "Not Satisfied" Votes | 24 |