LC: 1086. High Five - spiralgo/algorithms GitHub Wiki

1086. High Five:

The Essence:

The array items is not sorted but the question asks for each student's top five average in increasing order.

Therefore, the question wants to teach us to sort an array according to some criteria.

Details:

We can sort and array using a built-in method like Arrays.sort or a max/min heap implementation like PriorityQueue.