Possible Duplicate:
How to find the kth largest element in an unsorted array of length n in O(n)?
Is there any algorithm of finding the middle value of given list without performing the sorting operation.
for example if the list is maintained as stack and contains ( 1,2,5,3,4,6 ) then the middle value should be 4 so my question is how to get this value without performing the sorting operation on the list.
is this possible?