In which scenario would a double-ended queue (Deque) be particularly useful?
A. When you need to add or remove elements from both ends
B. When you need to sort elements
C. When you need to manage tasks by priority
D. When you need to store elements sequentially
Answer: Option A

Join The Discussion