Union Iterator for Two Strictly Sorted Iterators
Problem
Implement a UnionIterator class that accepts two strictly increasing iterators and returns the union of their elements in strictly increasing order. An element present in both inputs must...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
