Examveda

What is the purpose of the heapq module in Python?

A. To handle mathematical operations.

B. To sort data efficiently.

C. To manage input and output streams.

D. To provide heap queue algorithms.

Answer: Option D


Join The Discussion

Related Questions on Standard Libraries in Data Structures