Computer Science, asked by sdixitshivi786, 22 days ago

Date:
Page:
no
Weite
bet ween
element
program
of
in Java to accept two different
p and q merge
array
both​

Answers

Answered by kshristinalaishram
0

Answer:

I can't understand your question...

plz ask properly..

Answered by manognyafeb26
1

Answer:

Hope u find it helpful

Explanation:

Merge two sorted arrays

Difficulty Level : Easy

Last Updated : 23 Mar, 2021

 

Given two sorted arrays, the task is to merge them in a sorted manner.

Examples:  

Input: arr1[] = { 1, 3, 4, 5}, arr2[] = {2, 4, 6, 8}  

Output: arr3[] = {1, 2, 3, 4, 4, 5, 6, 8}

Input: arr1[] = { 5, 8, 9}, arr2[] = {4, 7, 8}  

Output: arr3[] = {4, 5, 7, 8, 8, 9}

Similar questions