摘要: 循环队列的相关条件和公式: 1.队空条件:rear==front 2.队满条件:(rear+1) %QueueSIze==front,其中QueueSize为循环队列的最大长度 3.计算队列长度:(rear-front+QueueSize)%QueueSize 4.入队:(rear+1)%QueueSize 5.出队:(front+1)%QueueSize 阅读全文
posted @ 2017-08-22 15:14 悟空的爸爸 阅读(2286) 评论(0) 推荐(0) 编辑