L601 Flatten 2D Vector
Implement an iterator to flatten a 2d vector.
Example
Given 2d vector =
By calling next repeatedly until hasNext returns false, the order of elements returned by next should be:[1,2,3,4,5,6]
.
Last updated
Implement an iterator to flatten a 2d vector.
Example
Given 2d vector =
By calling next repeatedly until hasNext returns false, the order of elements returned by next should be:[1,2,3,4,5,6]
.
Last updated