← Questions

Sparse matrix multiplication

0
MetaNetflixCodingLast asked Sep 2026

Multiply two matrices that are mostly zeros. Store only the non-zero entries and skip work on zeros, and state the cost in terms of the number of non-zero entries.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding