Practice ยท 1 of 3
Category Totals
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.
Difficulty: beginner
Press Submit to check your solution.
Back to lesson: Practice: Decomposition Drill