Problem 251 · Medium

Flatten 2D Vector

Design an iterator to flatten a 2D vector on the fly.

Open the interactive visualisation