Problem 1868 · Medium

Product of Two Run-Length Encoded Arrays

Multiply two run-length encoded arrays and keep the result maximally compressed.

Open the interactive visualisation