a Explanation: Less than(<) operator is sufficient to compare any two elements in heap and construct respective min or max heap accordingly. Reply

a

Explanation: Less than(<) operator is sufficient to compare any two elements in heap and construct respective min or max heap accordingly.