87. Find Kth Smallest and Kth Largest Element

Loading...

Loading...

Input

5 10 3 5 2 7 2

Expected Output

3 7