有人知道奕尚网吗?# Fashion - 美丽时尚
C*n
1 楼
Find the Kth smallest element in 2 sorted
array. so if you have 2 arrays
160;[1, 5, 9, 15, 20, 34] and [2, 6,
8, 10, 11, 19] and k = 5, the&
#160;answer is 8. Basically whats the
5th smallest number in the 2 arrays
combined.
Any ideas?
array. so if you have 2 arrays
160;[1, 5, 9, 15, 20, 34] and [2, 6,
8, 10, 11, 19] and k = 5, the&
#160;answer is 8. Basically whats the
5th smallest number in the 2 arrays
combined.
Any ideas?