The structure of a binary tree is fixed given the total number of nodes in the tree, say N , so now you can easily construct the tree. I do not know what is troubling you. perhaps you can post your code here, and we can tell you what you need.
【在 c**********n 的大作中提到】 : The structure of a binary tree is fixed given the total number of nodes in : the tree, say N , so now you can easily construct the tree. I do not know : what is troubling you. perhaps you can post your code here, and we can tell : you what you need.