Skip to content

Commit

Permalink
Add Notes.md to LeetCode #506 'Relative Ranks'.
Browse files Browse the repository at this point in the history
  • Loading branch information
eminencegrs committed Dec 12, 2024
1 parent d58f274 commit aece2f2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Theory

**PriorityQueue<TElement,TPriority>** represents a collection of items that have a value and a priority.

- **It implements an array-backed, quaternary min-heap.**
- **Each element is enqueued with an associated priority that determines the dequeue order.**
- **Elements with the lowest priority are dequeued first.**
- **The type does not guarantee *first-in-first-out* semantics for elements of equal priority.**

0 comments on commit aece2f2

Please sign in to comment.