Sigmacomputing·Software Engineer·Technical Phone Screen
- Implement a basic 2D pivot table in memory: given a list of row maps with categorical and numeric columns, group by two categorical columns and sum the numeric column, then print the result as a text table.
- Extend the pivot table to include row totals, column totals, and a grand total in the printed output.
- Generalize the pivot table so that each axis can be defined by a list of column names rather than a single column, forming composite tuple keys for rows and columns.
“Started okay with a nested map approach, row key to col key to running sum.”