maxLevel : keeps track of maximum level seen so far . res : Value of deepest node so far . level : Level of root
void find ( Node * root , int level , int & maxLevel , int & res ) { if ( root != NULL ) { find ( root -> left , ++ level , maxLevel , res ) ;