I have a binary tree and each node has this footprint. The tree is balanced by the key.
struct node
{
STRING key;
VECTOR data;
struct node left;
struct node right;
}
I want to have a function that will return the key of a node that has the largest data vector. size(data) returns the size of the data; I want to use such a function like STRING largest = get_largest_key(MYTREE); Thank you.