LeetCode
Question
·
Aug 2019
·
San Francisco
Lyft | Phone Screen | Intersection Iterator
7 upvotes
4,686 views
11 replies
Question Details
Given two sorted iterators. Implement IntersectionIterator which returns only common elements in both iterators. If you are not familiar with Iterators check similar questions. public class IntersectionIterator implements Iterator<Integer> { public..…
Full Details
🔒
Unlock full leaked content
Full insider details, leaked discussions, and candidate experiences.
Get Premium →