Practice ยท 3 of 4
Category report
CHALLENGE
Difficulty: beginner+25 XP
Implement static List<string> TopCategories(List<Transaction> ledger, int n) โ the category names by total (expenses and incomes alike), descending; ties alphabetical; return at most n names.
Press Submit to check your solution.
Back to lesson: Practice: Capstone workshop