队列学习小结
摘要:数组队列是一种线性结构,只能从一端(队尾)添加元素,并且只能从另一端(队首)取元素。 先进先出(FIFO) 循环队列:front为队首 ,tail为队尾 循环队列为空的判断条件:front==tail ,循环队列为满的判断条件: (tail+1)%capacity ==front 循环队列比数组队列
阅读全文
posted @ 2019-02-24 14:57
posted @ 2019-02-24 14:57
posted @ 2018-11-27 17:11
posted @ 2018-11-27 16:44