Sparse Matrix Class (Store / Print / Add / Multiply)
Asked at Pinterest · Coding Questions · Difficulty: Medium · Last asked Nov 11, 2026
After a ~15-minute resume shallow-dive, the MLE phone screen turns into an object-design coding task: build a class that stores a sparse matrix compactly and supports printing it back as a dense grid, matrix addition, and matrix multiplication.
Loading the problem…