If debugging is the process of removing bugs, then programming must be the process of putting them in. Edsger W. Dijkstra

Median of two sorted array

Language Java | Level Intermediate | Category Data structure | September 9, 2015 10:18 am


Data structure Description

There are two sorted arrays A and B of size M and N respectively. Find the median of the two sorted arrays. Write a program to implement median of Two Sorted Arrays.


Output

   					 

Items from Array 1: [5, 25, 100]
Items from Array 2: [5, 8, 10, 20]
Median of two arrays: 9

				    

Comments


No comments available!

Please login to add comments.