Aggregate records into maps by different dimensions

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). Implement an aggregation function that groups ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: