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: Bounded Priority Queue/README.markdown
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ public class BoundedPriorityQueue<T: Comparable> {
35
35
privatetypealiasNode= LinkedListNode<T>
36
36
37
37
private(set) publicvar count =0
38
-
privatevar head: Node?
38
+
fileprivatevar head: Node?
39
39
privatevar tail: Node?
40
40
privatevar maxElements: Int
41
41
@@ -55,7 +55,7 @@ public class BoundedPriorityQueue<T: Comparable> {
55
55
The `BoundedPriorityQueue` classcontains a doubly linked list of `LinkedListNode` objects. Nothing special here yet. The fun stuff happens in the `enqueue()` method:
0 commit comments