๐Ÿ’ปap computer science a review

Deques

Written by the Fiveable Content Team โ€ข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโ€ขWritten by the Fiveable Content Team โ€ข Last updated September 2025

Definition

Deques, short for double-ended queues, are data structures that allow insertion and removal of elements from both ends. They can be used to implement stacks and queues efficiently.

"Deques" also found in: