Skip to content
RED SAGSkills
medium10 pts · first answer countshash-mapgrouping

Total spend per customer

Transactions are [{ c: "A", amt: 500 }, { c: "B", amt: 200 }, { c: "A", amt: 300 }]. Grouping with a Map from customer to total, what are the totals?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions