Given a binary tree:
typedef struct node
{
int info;
struct node *left,*right;
}node;
How to implement a recursive function void heapify(node *root)
to construct a max heap from a binary tree given above?
Given a binary tree:
typedef struct node
{
int info;
struct node *left,*right;
}node;
How to implement a recursive function void heapify(node *root)
to construct a max heap from a binary tree given above?