how to find the 30 largest elements through the txt file using binary search?
I should find 30 largest elements from txt file and then store it in array
What's the memory limit? If you don't care about how much memory it uses you just can read all the elements inside an array, sort the array then the last 30 elements are the biggest ones.