Kallol Bairagikallolbairagi.hashnode.dev·Oct 12, 2023#110.Balanced Binary Tree [LeetCode Grind 75 in Java]class Solution { public boolean ans = true; public int checkHeightDiff(TreeNode node){ if(node == null) return 0; int leftht = checkHeightDiff(node.left); int rightht = checkHeightDiff(node.right); if(Math.a...DiscussLeetCode Grind 75 in JavaDSA
Mehzabin Aothoimehzabin.hashnode.dev·Aug 13, 2023Binary Tree Vs Binary Search TreeWe know that a tree is a non-linear data structure that represents hierarchical data and contains no cycles. Now, let's delve into a commonly asked question during interviews: When do we call a tree a binary tree, and how does it differ from a binary...Discussbinary tree
Haneunhanlee.hashnode.dev·Aug 4, 2023What is LCA(Lowest Common Ancestor)Definition Lowest Common Ancestor, LCA. LCA is an algorithm or concept used in tree structures to find the closest common ancestor of two nodes. Example In the above binary tree, the LCA of 4 and 6 is 1. LCA(4, 6) = 1 Purpose The purpose of the LCA...DiscussProgrammingLowest Common Ancestor
Tanmay Sarkartanmaysarkar.hashnode.dev·Jun 24, 2023Binary Trees Explained: A Step-by-Step TutorialIntroduction 🧑🏽💻 Welcome to the fascinating world of binary trees! If you're new to this topic or looking to reinforce your understanding, you're in the right place. In this tutorial, I'll take you on a step-by-step journey through the fundamenta...Discuss·78 readsWeMakeDevs