Finding the k-th largest number. I took a shortcut and just used a direct sort. The proper approach should be simulating quickselect.
| |
Finding the k-th largest number. I took a shortcut and just used a direct sort. The proper approach should be simulating quickselect.
| |