algo_049.md (290B)
1 # algo_049 2 3 ### Problem Statement 4 5 > Write an algorithm to count the total number of nodes in a binary tree. 6 7 ## Algorithm 8 ``` 9 procedure countNode(T) 10 begin 11 if (T = NULL) then 12 return 0; 13 else 14 return 1 + countNode(LC(T)) + countNode(RC(T)); 15 endif 16 end procedure 17 ```