6 kyu
Highest Scoring Word
10,602 of 105,984PG1
Description:
Given a string of words, you need to find the highest scoring word.
Each letter of a word scores points according to its position in the alphabet: a = 1, b = 2, c = 3
etc.
For example, the score of abad
is 8
(1 + 2 + 1 + 4).
You need to return the highest scoring word as a string.
If two words score the same, return the word that appears earliest in the original string.
All letters will be lowercase and all inputs will be valid.
Fundamentals
Strings
Arrays
Similar Kata:
Stats:
Created | Sep 28, 2016 |
Published | Sep 28, 2016 |
Warriors Trained | 192492 |
Total Skips | 28049 |
Total Code Submissions | 361262 |
Total Times Completed | 105984 |
JavaScript Completions | 33182 |
Haskell Completions | 795 |
Ruby Completions | 2412 |
Python Completions | 38168 |
Crystal Completions | 34 |
C# Completions | 5590 |
Java Completions | 10602 |
R Completions | 196 |
C++ Completions | 4937 |
C Completions | 1223 |
Elixir Completions | 292 |
PowerShell Completions | 166 |
PHP Completions | 2646 |
Kotlin Completions | 1266 |
Scala Completions | 445 |
NASM Completions | 19 |
Rust Completions | 1447 |
Go Completions | 2135 |
CoffeeScript Completions | 15 |
Julia Completions | 62 |
TypeScript Completions | 2066 |
COBOL Completions | 7 |
D Completions | 5 |
Factor Completions | 12 |
Lua Completions | 40 |
Groovy Completions | 7 |
Total Stars | 2937 |
% of votes with a positive feedback rating | 92% of 8549 |
Total "Very Satisfied" Votes | 7299 |
Total "Somewhat Satisfied" Votes | 1121 |
Total "Not Satisfied" Votes | 129 |
Total Rank Assessments | 10 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |