给出一个完全二叉树,求出该树的节点个数。

官方题解写的还是可以看懂的。
https://leetcode-cn.com/problems/count-complete-tree-nodes/
主要是要利用完全二叉树的特性

  • 先求