NewThe Learning module is now liveSee what's new

A large retailer collects weekly transaction data from thousands of stores. You are given an array of records, where each record is a string "price,count" representing a batch of transactions: price is a transaction price in cents and count is the number of transactions at that price.

The same price may appear in multiple records, and their counts should be combined.

Test Cases
Input
Output
Expected