Spot the bug: Kth Largest that reads the wrong end of the heap

medium
Heap / top K

Bug 8 of 12

This Python solution is supposed to do the following: Return the kth largest element in nums (duplicates count). It has one bug. Find the line in two tries.

Tap the line with the bug

2 tries left

FAQ