Examveda

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


This Question Belongs to Data Structure >> Queues In Data Structures

Join The Discussion

Related Questions on Queues in Data Structures