C#C
C#16mo ago
Coolbeans

Priority queue, queue empty error.

Hi, I am getting an error when trying to use the peek method that says that the queue is empty. However just before this I use the enqueue method to put something into it. Why is this error occurring?
image.png
Was this page helpful?