Skip to main content

Practice ยท 3 of 4

Top word with a tie rule

CHALLENGE
Difficulty: beginner+25 XP

Implement static string TopWord(List<string> words) โ€” the most frequent word; on a tie, the **alphabetically first**. Every list has at least one word.

Back to lesson: Practice: Algorithm workshop