7 kyu
Which string is worth more?
1,020 of 1,886ArtOfCode
Description:
You will be given two ASCII strings, a
and b
. Your task is write a function to determine which one of these strings is "worth" more, and return it.
A string's worth is determined by the sum of its ASCII codepoint indexes. So, for example, the string HELLO
has a value of 372: H is codepoint 72, E 69, L 76, and O is 79. The sum of these values is 372.
In the event of a tie, you should return the first string, i.e. a
.
Algorithms
Strings
Fundamentals
Similar Kata:
Stats:
Created | Dec 1, 2016 |
Published | Dec 1, 2016 |
Warriors Trained | 2603 |
Total Skips | 26 |
Total Code Submissions | 4693 |
Total Times Completed | 1886 |
Python Completions | 1020 |
Ruby Completions | 143 |
Haskell Completions | 106 |
JavaScript Completions | 559 |
C# Completions | 133 |
Total Stars | 24 |
% of votes with a positive feedback rating | 92% of 405 |
Total "Very Satisfied" Votes | 351 |
Total "Somewhat Satisfied" Votes | 46 |
Total "Not Satisfied" Votes | 8 |
Total Rank Assessments | 19 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |