Basic Operations in Deque
- Enqueue Front: Add an element to the front of the deque.
- Enqueue Rear: Add an element to the rear of the deque.
- Dequeue Front: Remove an element from the front of the deque.
- Dequeue Rear: Remove an element from the rear of the deque.
- Front: Get the element at the front of the deque without removing it.
- Rear: Get the element at the rear of the deque without removing it.
- Is Empty: Check if the deque is empty.
- Size: Get the number of elements in the deque.
Contact Us