Practicing for software developer interviews and got stuck on an algorithm question.
Given two sets of unsorted integers with array of length m and other of
Here's a link to a post that I think answers your question.
3) Sort smaller O((m + n)logm)
Disadvantage: Modifies the input