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.
Ask AI Assistant

Ask AI Assistant
Ask me anything about this coding question!
Test Cases
Input
Output
Expected