← Coinbase questions
CodingReported in a candidate post, May 2024

Zigzag iterator over lists and iterators

Filed under Coinbase

Implement a zigzag iterator in three parts. Part 1: given two lists v1 and v2, implement an iterator that returns their elements alternately, with next() and hasNext(). Part 2: generalise it: given a…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Coinbase questions

Collected from public candidate posts and coding forums. Updated Nov 2026.