Arrays of arrays

Hard

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:

  • Array values must be increasing....

Sign in to InterviewQs to view this question

Or

New to InterviewQs? Sign up now.

By proceeding, you agree to our Terms and Conditions and Privacy Policy.

Loading editor...