Given two sorted arrays A and B, generate all possible sorted arrays such that the first element is taken from A then from B. Your algorithm must follow the rules below:
New to InterviewQs? Sign up now.
By proceeding, you agree to our Terms and Conditions and Privacy Policy.
Loading editor...