Aggregate records into maps by different dimensions

Asked at Affirm · Coding & Leetcode-style Questions · Difficulty: Medium

You are given a list of records. Each record contains multiple dimension fields (e.g., A, B, C, ...) and possibly metric fields (e.g., count=1 or value).

Loading the problem…