Name: ________________________________
Honor Code Acknowledgment: _____________________________
Due: November 5 (Election day)
A binary tree node is represented by the following definition.
struct Node
{
int age; // age of a person
Node * left;
Node * right;
};
Write a recursive function called
NumberTooOld that returns the
number of people of who are older than a given "value"
(that is, the number of nodes with age greater than "value").
int NumberTooOld(Node * T, int value)
// postcondition: returns the number of nodes in T whose
// age is greater than "value"
{
}