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