Question:

In Python, ________ module needs to be imported for implementing a Double-Ended Queue?

Updated On: Nov 4, 2024
  • counter
  • collections
  • random
  • numpy
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

The collections module in Python includes deque, which allows efficient append and pop operations on both ends of the queue.
Was this answer helpful?
0
0