Suppose we have n (1<=n<=10^3) sorted arrays of sizes A1, A2, .... An. (1<=Ai<=10^3). We need to kind the kth smallest integer from the unique combination these arrays. Is there an efficient method to do this with complexity less than O(A1 + A2.. + An)?
Can be be solved something similar to binary search?
PS: I have a similar problem here, but could not understand how to extend it for unique elements.
EDIT 1: I think some of you misunderstood the question. Let us take an example: N = 3,
A1 = 1, 1, 2, 3
A2 = 6, 7, 9
A3 = 1, 6, 8
The unique combination of above arrays is {1, 2, 3, 6, 7, 8, 9}. Now suppose I want the 2nd element it should return 2 and for 4th element it should return 6.