Problem 1570 · Medium

Dot Product of Two Sparse Vectors

Compute a dot product of two vectors by storing only their nonzero entries and matching indices. The visual pairs the stored entries from each vector.

Open the interactive visualisation