Question DSA-HEAP-0039
EasyBy default, what kind of heap is Java's PriorityQueue?
- A.
A stack
- B.
A min-heap
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Heaps and Priority Queues question
By default, what kind of heap is Java's PriorityQueue?
A stack
A min-heap
Sign up free to see the answer and a step-by-step explanation.
A sorted list
A max-heap