You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ class Element
30
30
Then we can create a new priority queue using one of the two default implementations, and pass in a comparer
31
31
```cs
32
32
// Create a new instance of BinaryHeapPriorityQueue
33
-
IPriorityQueue<Element>myPriorityQueue=newBinaryHeapPriorityQueue<Element>((a, b) =>a.Priority.CompareTo(b.Priority)); // this will produce a min-heap, use b.Priority.CompareTo(b.Priority) for a max-heap
33
+
IPriorityQueue<Element>myPriorityQueue=newBinaryHeapPriorityQueue<Element>((a, b) =>a.Priority.CompareTo(b.Priority)); // this will produce a min-heap, use b.Priority.CompareTo(a.Priority) for a max-heap
0 commit comments