求环形队列倒置的算法
求教如何将环形队列倒置,希望具体说一下算法
n=10的环形队列,倒置后为什么是这样的
1 2 3 4 5 6 7 8 9 10 ——> 1 2 3 4 5 6 7 8 9 10
c d e f a b f e d c b a
rear front rear front