Enter your book access code

The curriculum, drills, tutor, and interviewer mode are for readers of Ace the Rust Interview. The code is printed in the Preface (Companion site access).

Don’t have the book yet? The landing page stays open — purchase unlocks this gym.

intermediate · order 67

Queue over VecDeque

list-deque-01Related book chapters: 18 (optional — this page is complete on its own)VecDequequeue

Slug: list-deque-01 · Paired reading: Chapter 18

Prompt

Implement Queue<T> with enqueue (back) and dequeue (front) over std::collections::VecDeque<T>. This is the idiomatic double-ended "list" answer — a ring buffer, not pointer nodes.