设计循环双端队列 题目 设计实现双端队列。 请不要使用内置的双端队列库。 链接:https://leetcode-cn.com/problems/design-circular-deque/ 思路 题目要求不使用内置的双端队列库,那么可以考虑使用双指针,即队首指针和队尾指针。 Python代码 class MyCircularDeque: def __init__(self, k: int): self.head,self.tail = 0,0 self.queue = [None for i in range(k)] def insertFro