Question DSA-HEAP-0053
MediumIs [10, 9, 8, 7, 6, 5, 4] a valid max-heap?
- A.
No, because 4 is at the end
- B.
No, a heap cannot be sorted
- 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
Is [10, 9, 8, 7, 6, 5, 4] a valid max-heap?
No, because 4 is at the end
No, a heap cannot be sorted
Sign up free to see the answer and a step-by-step explanation.
Yes
No, because 9 > 8 is out of order