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

Stats:

CreatedJul 17, 2018
PublishedJul 17, 2018
Warriors Trained5764
Total Skips64
Total Code Submissions10178
Total Times Completed3805
JavaScript Completions1440
Haskell Completions66
C++ Completions1267
Python Completions1009
Ruby Completions118
Total Stars65
% of votes with a positive feedback rating94% of 676
Total "Very Satisfied" Votes605
Total "Somewhat Satisfied" Votes62
Total "Not Satisfied" Votes9
Total Rank Assessments6
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • user387193 Avatar
  • JohanWiltink Avatar
  • KenKamau Avatar
  • FArekkusu Avatar
  • Mooaholic Avatar
  • saudiGuy Avatar
Ad