As mentioned at: https://leetcode.com/problems/kth-largest-element-in-an-array/solutions/60309/c-stl-partition-and-heapsort/ std::partial_sort and std::nth_largest could from C++17 be used to get the answer even more directly
source not stored for this graph (policy: none)