Introduction - If you have any usage issues, please Google them yourself
Please write a procedure to determine the characteristics of binary tree. Such as: the level of each node from the root to the node of the branch length (path length), the number of descendants and the number of ancestors. Each node in the former sequence, in order, after the preface序号visit.