Skip to main content

Practice ยท 1 of 4

Word frequency

CHALLENGE
Difficulty: beginner+25 XP

Implement static Dictionary<string, int> WordCounts(IEnumerable<string> words) โ€” each distinct word (case-**insensitive**, store lowercased) mapped to its count. Null or empty input returns an empty dictionary.

Back to lesson: Practice: Collection workout