Monthly report (Expense Tracker)
Add report <YYYY-MM: print report <month: <total, then one line per category in that month, biggest first (ties by name): <category <amount <percent% with one decimal.
Input: As before.
Output: As before.
Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- Group by category with a map, then sort by (−amount, name).