Just remember: you’re not a ‘dummy,’ no matter what those computer books claim. The real dummies are the people who–though technically expert–couldn’t design hardware and software that’s usable by normal consumers if their lives depended upon it. Walter Mossberg

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.