Question: What is the primary advantage of using a deque (double-ended queue)?
Options:
Correct Answer: Access to both ends for insertion and deletion
Solution:
The primary advantage of a deque is that it allows insertion and deletion from both ends, making it more flexible than a standard queue.