Given two sorted arrays a and b of sizes n1 and n2


Given two sorted arrays A and B, of sizes n1 and n2 respectively, design an algorithm to find the kth largest key. The order of growth of the worst case running time of your algorithm should be log n, where n = n1+n2

  • Version 1: n1 = n2 and k = n/2.
  • Version 2: k = n/2.
  • Version 3: no restrictions

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Given two sorted arrays a and b of sizes n1 and n2
Reference No:- TGS01484104

Now Priced at $10 (50% Discount)

Recommended (92%)

Rated (4.4/5)