AppFolio Interview Question: given two sorted arrays A and... | Glassdoor

Interview Question

Software Engineer Intern Interview(Student Candidate) Santa Barbara, CA

given two sorted arrays A and B A has a buffer at the end

  large enough to hold B. how would you merge them into a sorted array

Interview Answer

1 Answer


start from the end of each array and keep filling the array A with the maximum element

Interview Candidate on Jan 17, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.