educative.io

Educative

The comment in the buildMinHeap method is incorrect

The comment : // swap largest child to parent node is completely opposite of what needs to happen and is misleading. It is correct in the solution review page .


Type your question above this line.

Course: https://www.educative.io/collection/5642554087309312/5724822843686912
Lesson: https://www.educative.io/collection/page/5642554087309312/5724822843686912/5681117457809408

Hi @Sachin

Thank you for pointing this out. The lesson has been updated and the issue has been fixed.