but why my same query cannot pass for 'time limit exceeded'. LOL.
Posts made by Shinel19
RE: Solution explained
Yes, I initially think using a variable to keep each pass in a bubble sorting algorithm. The Kth pass actually is moving the Kth largest number to the end of the array. Retrieving the number after Kth pass, we get the answer. But that will be O(N^2)