Morgan Stanley | Zoom | Sorting three arrays together java solution
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-10-28Added By Anonymous
Source: Link
Company: Morgan Stanley
Role: unknown
Interview Stage: unknown
Location: unknown
Year: unknown
Original Experience:
So i was giving an interview and was asked to sort three arrays. For eg : Array a = {1,6,4} , b = {1,3,5} and c = {2,6} Now the question is to sort these array so that the output can be a = {1,1,2} b= {3,4,5} and c = {6,6} Constraint was to not to use any extra space. Can any one help me to understand how can it be done? Thanks
Role: unknown
Interview Stage: unknown
Location: unknown
Year: unknown
Original Experience:
So i was giving an interview and was asked to sort three arrays. For eg : Array a = {1,6,4} , b = {1,3,5} and c = {2,6} Now the question is to sort these array so that the output can be a = {1,1,2} b= {3,4,5} and c = {6,6} Constraint was to not to use any extra space. Can any one help me to understand how can it be done? Thanks