Practice · 1 of 3
Category Totals
CHALLENGE
Difficulty: beginner+25 XP
Given the Txn model in scope, implement int total_by_cat(const Txn *txs, int n, int cat) summing cents of transactions whose category equals cat.
Press Submit to check your solution.
Back to lesson: Practice: Decomposition Drill