Skip to content

Commit a1b1d4a

Browse files
authored
Update PriorityQueueSort.java
1 parent b2a89e7 commit a1b1d4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/thealgorithms/sorts/PriorityQueueSort.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@
1515
* - Total: O(n log n)
1616
*
1717
* Space Complexity: O(n) for the PriorityQueue
18+
*
19+
* @see <a href="https://en.wikipedia.org/wiki/Heap_(data_structure)">Heap / PriorityQueue</a>
1820
*/
1921
public class PriorityQueueSort {
2022

23+
// Private constructor to prevent instantiation (utility class)
24+
private PriorityQueueSort() {}
25+
2126
/**
2227
* Sorts the given array in ascending order using a PriorityQueue.
2328
*

0 commit comments

Comments
 (0)