(Hackerrank) HackerRank Python Certification Practice Test
Hackerrank Python Data Structures & Algorithms 4
What does `heapq.heappush(h, item)` guarantee about the resulting list `h`?
Select your answer
A
h is fully sorted
B
h[0] is always the smallest element
C
h is a max-heap
D
h contains no duplicates
Hint
✨ Remove Ads & Unlock Every Exam
— From $1.49
🃏 HACKERRANK Flashcards — Study This Quiz as Flip Cards →
📚 Want to go deeper? Read the Full HACKERRANK Study Guide →