Find Size of a Binary Tree

preview_player
Показать описание
We can find the size of a binary tree (i.e. the number of nodes in that binary tree) by adding 1 (for the root node), the size of the left subtree, and the size of the right subtree.

Рекомендации по теме