Loading...
Given the root of a complete binary tree (as a level-order array), return the number of nodes.
A complete binary tree has every level fully filled except possibly the last, which is filled from left to right.
1,2,3,4,5,6
6
1,2,3,4,5,6 represents a level-order traversal of the complete binary tree.