Q. Which data structure does `collections.deque` represent?

  • (A) Stack
  • (B) Queue
  • (C) Double-ended queue
  • (D) Heap
πŸ’¬ Discuss
βœ… Correct Answer: (C) Double-ended queue
Explanation: `deque` stands for double-ended queue and allows fast appends and pops from both ends.
Explanation by: Mr. Dubey
`deque` stands for double-ended queue and allows fast appends and pops from both ends.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
69
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate