- 1

Kata from Codewars

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. 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. ////////////////////////////// Edge_Cases: Expected: equal to "b" Actual: "a" Random_Tests: Expected: equal to "byrsecsafitasthppuceiup" Actual: "eeapccoronzheetlapokpr" What's wrong? https://code.sololearn.com/cDth1weW9llz/?ref=app

28th Jan 2021, 4:45 AM
Γενναίος
Γενναίος - avatar
3 Respostas
+ 3
if somebody help you, that's cheating... and solution will be available on internet ^^
28th Jan 2021, 4:50 AM
visph
visph - avatar
+ 3
Don't they have a Q&A section on their platform?
28th Jan 2021, 5:16 AM
Sonic
Sonic - avatar
+ 2
I got it, but i need some help, not all solution
28th Jan 2021, 4:52 AM
Γενναίος
Γενναίος - avatar