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

More By Author:

Check out these other kata created by PG1

Stats:

CreatedSep 28, 2016
PublishedSep 28, 2016
Warriors Trained192492
Total Skips28049
Total Code Submissions361262
Total Times Completed105984
JavaScript Completions33182
Haskell Completions795
Ruby Completions2412
Python Completions38168
Crystal Completions34
C# Completions5590
Java Completions10602
R Completions196
C++ Completions4937
C Completions1223
Elixir Completions292
PowerShell Completions166
PHP Completions2646
Kotlin Completions1266
Scala Completions445
NASM Completions19
Rust Completions1447
Go Completions2135
CoffeeScript Completions15
Julia Completions62
TypeScript Completions2066
COBOL Completions7
D Completions5
Factor Completions12
Lua Completions40
Groovy Completions7
Total Stars2937
% of votes with a positive feedback rating92% of 8549
Total "Very Satisfied" Votes7299
Total "Somewhat Satisfied" Votes1121
Total "Not Satisfied" Votes129
Total Rank Assessments10
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • PG1 Avatar
  • GiacomoSorbi Avatar
  • joecastle Avatar
  • anter69 Avatar
  • Brettm12345 Avatar
  • smile67 Avatar
  • Chrono79 Avatar
  • kazk Avatar
  • docgunthrop Avatar
  • JorgeVS Avatar
  • adrian.eyre Avatar
  • cyril-lemaire Avatar
  • BrightOne Avatar
  • Voile Avatar
  • Madjosz Avatar
  • Souzooka Avatar
  • appositum Avatar
  • TheDrw Avatar
  • mentalplex Avatar
  • kdmatrosov Avatar
  • FArekkusu Avatar
  • lekowan Avatar
  • hobovsky Avatar
  • Console Cowboy Avatar
  • agutierrez-datio Avatar
  • trashy_incel Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • Kacarott Avatar
  • tri@ Avatar
  • FranzMartyn Avatar
  • KayleighWasTaken Avatar
  • metatable Avatar
Ad