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
Inserting elements at 0 priority causes an infinite loop.
For example, when we run the following snippet of code, we fall into an infinite loop:
```php
$queue = new FastPriorityQueue();
$queue->insert('a', 0);
$queue->insert('b', 1);
foreach ($queue as $value) {echo $value;}
```
0 commit comments