摘要: Object []kk=set.toArray(); Arrays.sort(kk); 阅读全文
posted @ 2018-03-16 15:49 xianbeigg 阅读(105) 评论(0) 推荐(0) 编辑
摘要: java: 注意:Java中的优先队列没有排序功能,若要排序,请用: As you can see in the PriorityQueue javadoc: The Iterator provided in method iterator() is not guaranteed to traver 阅读全文
posted @ 2018-03-16 11:06 xianbeigg 阅读(236) 评论(0) 推荐(0) 编辑
摘要: The functions associated with priority queue are:empty() – Returns whether the queue is emptysize() – Returns the size of the queuetop() – Returns a r 阅读全文
posted @ 2018-03-16 10:50 xianbeigg 阅读(143) 评论(0) 推荐(0) 编辑