We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2a89e7 commit a1b1d4aCopy full SHA for a1b1d4a
src/main/java/com/thealgorithms/sorts/PriorityQueueSort.java
@@ -15,9 +15,14 @@
15
* - Total: O(n log n)
16
*
17
* Space Complexity: O(n) for the PriorityQueue
18
+ *
19
+ * @see <a href="https://en.wikipedia.org/wiki/Heap_(data_structure)">Heap / PriorityQueue</a>
20
*/
21
public class PriorityQueueSort {
22
23
+ // Private constructor to prevent instantiation (utility class)
24
+ private PriorityQueueSort() {}
25
+
26
/**
27
* Sorts the given array in ascending order using a PriorityQueue.
28
0 commit comments