Skip to content
loading...

re: Daily Challenge #110 - Love VS. Friendship VIEW POST

FULL DISCUSSION
 

Here is my fun solution using Kotlin:

fun wordsToMarks(word: String) = word.toCharArray()
        .map { it + 1 - 'a' }
        .sum()
code of conduct - report abuse