NeetCode #335LC-622MediumLinked ListNC 250
← Back to All Problems#335 · #622 · Design Circular Queue(设计循环队列)
📌 Problem Statement & Constraints
Design a circular queue with a fixed capacity
k, supporting enQueue(value), deQueue(), Front(), Rear(), isEmpty() and isFull(). Return -1 where the API specifies it for invalid access. Constraints: 1 <= k <= 1000; at most 2000 calls.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!