现代优先队列浏览器
在这里,不讲“先来后到”,只看“优先级”
操作 (数值越小,优先级越高)
入队 (Enqueue)
出队 (Dequeue)
管理
重置队列
最高优先级
{{ highestPriorityItem ? `${highestPriorityItem.value} (P:${highestPriorityItem.priority})` : 'N/A' }}
队列状态
大小:
{{ queue.length }}
最低优先级
{{ lowestPriorityItem ? `${lowestPriorityItem.value} (P:${lowestPriorityItem.priority})` : 'N/A' }}
队列为空。
P: {{ item.priority }}
{{ item.value }}