Question DSA-HEAP-0038
EasyIs an array sorted in ascending order always a valid min-heap?
- A.
Only for numbers below 100
- B.
Yes
- 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 an array sorted in ascending order always a valid min-heap?
Only for numbers below 100
Yes
Sign up free to see the answer and a step-by-step explanation.
No
Only if its length is even