An alternative effective method to tackle this issue is by utilizing the QuickSelect algorithm, which is an in-place version of QuickSort. In this algorithm, we choose a 'pivot' and divide the remaining elements into two categories based on whether they are less than or greater than the pivot. Below is a Python implementation of the problem using QuickSelect: def partition ( nums , low , high ) : pivot = nums [ high ] i = low - 1 for j in range ( low , high ) : if nums [ j ] <= pivot : i += 1 nums [ i ] , nums [ j ] = nums [ j ] , nums [ i ] nums [ i + 1 ] , nums [ high ] = nums [ high ] , nums [ i + 1 ] return i + 1 def quickselect ( low , high , pos , nums ) : if low < high : pi = partition ( nums , low , high ) if pos < pi : return quickselect ( low , pi - 1 , pos , nums ) elif pos > pi : return quickselect ( pi + 1 , high , pos , nums ) return nums [ pi ] else : return nums [ low ] def findKthLargest ( nums , k ) : return quickselect ( 0 , len ( nums ) - 1 , len ( nums ) - k , nums ) Therefore, calling findKthLargest([5, 1, 7, 19, 0, 16], 3) will yield an output of 5. This method proves to be more efficient when working with larger datasets.