7 kyu
Every possible sum of two digits
1,440 of 3,805user387193
Description:
Given a long number, return all the possible sum of two digits of it.
For example, 12345
: all possible sum of two digits from that number are:
[ 1 + 2, 1 + 3, 1 + 4, 1 + 5, 2 + 3, 2 + 4, 2 + 5, 3 + 4, 3 + 5, 4 + 5 ]
Therefore the result must be:
[ 3, 4, 5, 6, 5, 6, 7, 7, 8, 9 ]
Algorithms
Similar Kata:
Stats:
Created | Jul 17, 2018 |
Published | Jul 17, 2018 |
Warriors Trained | 5764 |
Total Skips | 64 |
Total Code Submissions | 10178 |
Total Times Completed | 3805 |
JavaScript Completions | 1440 |
Haskell Completions | 66 |
C++ Completions | 1267 |
Python Completions | 1009 |
Ruby Completions | 118 |
Total Stars | 65 |
% of votes with a positive feedback rating | 94% of 676 |
Total "Very Satisfied" Votes | 605 |
Total "Somewhat Satisfied" Votes | 62 |
Total "Not Satisfied" Votes | 9 |
Total Rank Assessments | 6 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |