Queue常用類解析之PriorityQueue

PriorityQueue稱作優先隊列,與普通隊列先進先出不同,優先級隊列中優先級最高的元素最先出列。 一、屬性 //默認容量,初始化隊列沒有穿容量參數時使用 private static final int DEFAULT_INITIAL_CAPACITY = 11; /** * Priority queue represented as a balanced binary heap:
相關文章
相關標籤/搜索