Skip to main content

Practice ยท 2 of 4

Ranking with tie-breakers

CHALLENGE
Difficulty: beginner+25 XP

Implement static List<string> Rank(List<(string Name, int Score)> rows) โ€” names ordered by score descending, ties broken by name ascending; and static (string Name, int Score)? Top(List<(string Name, int Score)> rows) โ€” the first-ranked row or null for an empty/null list.

Back to lesson: Practice: LINQ workout