Skip to main content

Practice · 2 of 3

Dedup: Pick the Structure

CHALLENGE
Difficulty: intermediate+25 XP

Implement Dedup preserving FIRST-occurrence order, and Common returning the sorted intersection of two sequences (no duplicates in the result). ``csharp static List<string> Dedup(IEnumerable<string> items); static List<int> Common(IEnumerable<int> a, IEnumerable<int> b); ``

Back to lesson: Practice: Collections & Complexity Practice