Check whether a binary tree is full binary tree or not
Types of binary trees Problem link Code: public class FullBinaryTree { Node root; boolean isFullTree(Node node){ if(node == null) return true; if(node.left == null && node.right == null) return true; if(node.left != null && node.right != null) return isFullTree(node.left) && isFullTree(node.right); return false; } ...

This comment has been removed by the author.
ReplyDeleteGood presentation and easy to understand 😀
DeleteThank u Mahasri😊
ReplyDelete