In two unsorted arrays (say $A$ and $B$) such that all items of $A$ belong to $B$ ($A \subset B$), find the smallest item in $B$ that doesn't occur in $A$ in linear time.
No hashing or linear time sorting is allowed.
I can solve this question when $A$ and $B$ are sorted.
However, the question states $A$ and $B$ are unsorted, and I cannot think of a solution that solves this in O(n) time.