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
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
Which C++ standard library provides functionalities for containers like vector, list, and map?
A. <utility>
B. <iostream>
C. <vector>
D. <algorithm>
A. itertools
B. numpy
C. math
D. collections
Which Java standard library class is used for implementing a resizable array?
A. ArrayList
B. HashMap
C. LinkedList
D. TreeSet
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.
Join The Discussion