A

Admin • 833K Points
Coach

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

  • (A) Stack
  • (B) Queue
  • (C) Double-ended queue
  • (D) Heap
  • Correct Answer - Option(C)
  • Views: 28
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`deque` stands for double-ended queue and allows fast appends and pops from both ends.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.