Software Engineer • Mid-Level
New York, NY, US
Not Passed
Software Engineer • Mid-Level
High QualityRound Type
Phone Screen
Interview Date
Oct 10, 2026
Interview Process
1 round
Interview Source
Employee referral
Interview Summary
The first MongoDB technical screen focused on implementing a lazy UnionIterator over two already sorted input iterators. The key requirements were to preserve strict ordering, remove duplicates across the two streams, and avoid materializing the full inputs in memory.
Interview Details
Coding — Union of Two Sorted Iterators
Implement a UnionIterator that accepts two strictly sorted iterators. Each input iterator supports:
hasNext()— returns whether more elements remainnext()— returns the next value
UnionIterator should expose the same interface. The output must satisfy three properties:
- Contain the union of both input iterators
- Contain each value only once, even if it appears in both inputs
- Remain strictly sorted
The implementation should also use minimal extra
Unlock Full Details
Create a free account to unlock this interview experience report.