Citrix Interview Question: Array question... | Glassdoor

Interview Question

Engineering Interview Bengaluru (India)

Array question


Interview Answer

1 Answer


Given two array
1st array m elements
2nd array n+m elements
Both the array have sorted numbers
Copy all the elements of 1st array to second array so that second array contains n+m sorted elements at the end

Optimal solution O(m+n)

Interview Candidate on Feb 15, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.