7 kyu
Which string is worth more?
1,006 of 1,859ArtOfCode
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 | 2569 |
Total Skips | 25 |
Total Code Submissions | 4617 |
Total Times Completed | 1859 |
Python Completions | 1006 |
Ruby Completions | 142 |
Haskell Completions | 105 |
JavaScript Completions | 550 |
C# Completions | 130 |
Total Stars | 24 |
% of votes with a positive feedback rating | 92% of 397 |
Total "Very Satisfied" Votes | 344 |
Total "Somewhat Satisfied" Votes | 46 |
Total "Not Satisfied" Votes | 7 |
Total Rank Assessments | 19 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |