Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Practice Tech Mahindra Essay Topics

Program Discussion :: Array

Home > Programs > Array

15 / 23

Given three sorted arrays A, B, and C. Write the most efficient algorithm to find the 5th largest element among the three arrays.

Answer:

class demo{

    public static int [] merge(int a[],int b[],int n1, int n2)
    {
        int c[] = new int[n1 n2];
        int i=0,j=0,k=0;
        while(i

Asked In :: Nagarro HackerRank

Post Your Answer Here:

Language:

Post Your Reply Here: