Skip to main content

Practice · 1 of 3

Frequency Map + First Unique

CHALLENGE
Difficulty: intermediate+25 XP

Implement both: Frequency maps each whitespace-separated word to its count; FirstUnique returns the first word whose count is exactly 1 (null when none). ``csharp static IReadOnlyDictionary<string, int> Frequency(string text); static string? FirstUnique(string text); ``

Back to lesson: Practice: Collections & Complexity Practice