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.


Hi @Sachin

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