Why we have not started from the last non-leaf node since we know that the leaf node is also a heap?
Build heap optimised
hello @Mihir163
yeah right, we can start from first non leaf because leaves are already a valid heap .
Why we have not started from the last non-leaf node since we know that the leaf node is also a heap?
hello @Mihir163
yeah right, we can start from first non leaf because leaves are already a valid heap .