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

FULL DISCUSSION
 

c#, one liner using linq, ignoring non-letters chars:

int WordsToMarks(string word)
{
    return word.Where(c => char.IsLetter(c)).Sum(c => char.ToUpperInvariant(c) - 64);
}
code of conduct - report abuse