Question: ( write a python code to solve the problem ) Given two sorted arrays x and Y of size m and n each, consisting of
write a python code to solve the problem
Given two sorted arrays and of size and each, consisting of positive integers only. Merge the elements of with the elements of maintaining the sorted order, ie fill with the first smallest elements, and fill with the remaining elements.
Example Input:
Example Output:
Write a function to solve this problem. Your function should take the arrays and as input parameters and return and Do not use any extra array to solve the problem. Describe the time and space complexity of your algorithm.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
