Given a Binary Tree. Check whether the Binary tree is a full binary tree or not.
- Time : O(n)
- Space : O(1)
1 | bool isFullTree (struct Node* root) |
Given a Binary Tree. Check whether the Binary tree is a full binary tree or not.
1 | bool isFullTree (struct Node* root) |