Code Wars C# 6 kyu: Highest Scoring Word

preview_player
Показать описание
Beginner level C# object oriented programming series. Viewers are provided a string containing a number of words. They must scan the input and return the highest scoring word. A score for a word is determined by adding up the values of its letters. Letters are valued based on their position in the alphabet, with a = 1, b = 2, c = 3, etc. We'll solve using LINQ and without. The LINQ solution will use a new (to this series) method called MaxBy.

Рекомендации по теме
Комментарии
Автор

the refactoring at the end was a very good demonstration why writing test is a good thing to do nd allways be sure your changes still make the method work (sorry for my bad english)

isen