© 2023 Hashnode
#binarytrees
binary tree Hello and welcome to my blog! I am thrilled to have you here and I hope you are enjoying the content that I am sharing. My main goal with this blog is to provide useful information on vari…
Problem Link https://leetcode.com/problems/sum-root-to-leaf-numbers/ Discussion As input, the root of a binary tree is given. What we need to do that, Explore all the paths from the root to the leaf …
Binary trees are a fundamental data structure in computer science, often used for searching and sorting algorithms. They are a tree-like data structure where each node can have at most two children, r…
Traversals Preorder (DFS) Operations order: root -> left -> right Inorder (DFS) Operations order: left -> node -> right Postorder (DFS) Operations order: reft -> right -> root Operations ord…
Definition A tree is a data structure that is commonly used in computer science to store and organize data in a hierarchical manner. At the top of the tree is a root node, which branches out into mul…
Hello and welcome back to the Leetcode daily series! Today's problem is a very intriguing one. It covers scary-sounding topics such as binary tree traversals and recursion. Take a look at the problem …
Hello and welcome to the daily Leetcode problem series. This is the first problem I'm posting the solution to and hope to continue making daily posts after solving each Leetcode daily problem for the …
An Easy category problem which requires a sound understanding of BSTs to solve efficiently. With the seven th problem of the December leetcoding challenge https://leetcode.com/problems/range-sum-of-bs…
Those who are practicing the DSA problems must be aware of the topic of Tree Data Structure. Most well-known companies follow this data structure for their own products. Programmers who are preparing…
What will I be covering today? Well, I will be covering a few common LeetCode questions in a few posts, one of them being, finding the lowest common ancestor/value of a Binary Search Tree, or BST for …