Question DSA-HEAP-0052
MediumIs a sorted array (increasing) a valid min-heap?
- A.
Only if its length is a power of 2
- B.
Yes, every parent is smaller than its children
- 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 a sorted array (increasing) a valid min-heap?
Only if its length is a power of 2
Yes, every parent is smaller than its children
Sign up free to see the answer and a step-by-step explanation.
Only if it has no duplicates
No, never