Name (print): ________________________________
Honor Code Acknowledgment (sign): ________________________________________
Due: September 12, 1996
Consider the following struct.
struct InfoNode { int key; InfoNode * next; };
Complete the function CountNodes below. Your function should not use recursion.
int CountNodes(InfoNode * list, int value) // precondition: none // postcondition: returns the number of nodes > value { }
Rewrite CountNodes as a Recursive Function.
int CountNodes(InfoNode * list, int value) // precondition: none // postcondition: returns the number of nodes > value {