Heap Fundamentals - Priority Queue / Heap / Introduction

I’m going through them and making them overwhelming

In the “Heap in C++” section, there are some typos in the Task struct constructor. The constructor is named Element when it should be Task. And there’s a typo in the initializer list for priority.

A short Java top 3 smallest numbers problem implementation:

public class HeapTop3 {
    public static List<Integer> heapTop3(List<Integer> arr) {
        PriorityQueue<Integer> maxHeap = new PriorityQueue<>(arr);
        return List.of(maxHeap.poll(), maxHeap.poll(), maxHeap.poll());
    }
    ...
}

Please add Heap into Templates section - it would be super useful!!!