Skip to main content

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.

Back to lesson: Practice: Capstone workshop