We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 374567d commit e64c06cCopy full SHA for e64c06c
src/models/priority_queue.ts
@@ -166,7 +166,7 @@ export default class PriorityQueue<T = unknown> {
166
private _siftDown() {
167
// Start from the top index and work our way down the heap
168
let node = this.#top;
169
- // If a child is in the heap and has higher prioroty, swap with parent and go down
+ // If a child is in the heap and has higher priority, swap with parent and go down
170
while (
171
(this.left(node) < this.size && this._greater(this.left(node), node)) ||
172
(this.right(node) < this.size && this._greater(this.right(node), node))
0 commit comments