環形隊列介紹與實現

環形隊列可使用數組實現,也可使用循環鏈表實現。web package www.bittech; public class MyCircularQueue { private int front;//隊列頭 private int rear;//隊列尾 private int usedSize;//數據個數 private int[] elem;//數組 p
相關文章
相關標籤/搜索