Peeking Iterator — Interactive & Iterators

Wrap a forward-only track source so callers can look at the upcoming track without consuming it, while still reading tracks in order.

Interactive & Iterators · Medium

More in Interactive & Iterators

All algorithm problems