EdocGram
Home
(current)
Topics
EdocAI
Code Editor
HTML
Javascript
PHP
Python
Python AI Code Editor
More
Contact
About
Privacy Policy
Terms and Conditions
Log In
Topic
View
More
Topic
Hashing
Linked List
Queue
Stack
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Tree
Topic: tree-problem / Level: advanced
2002. Implement a function to find the lowest common ancestor (LCA) of three nodes in a binary tree.
2003. Given a binary tree, flatten it to a linked list in-place.
2004. Calculate the maximum width of a binary tree at any level.
2005. Find the vertical order traversal of a binary tree.
2006. Check if a binary tree is a binary search tree and also return its height.
2007. Find the maximum sum of any subtree in a binary tree.
2008. Implement a function to recover a binary search tree from its inorder traversal.
2009. Check if two binary trees are structurally identical and have the same values.
2010. Implement a function to perform a post-order traversal of a binary tree without recursion.
2011. Find the longest path in a binary tree from any node to any node.
2012. Calculate the average value of each level in a binary tree.
2013. Find the minimum number of operations required to convert one binary tree into another.
2014. Implement a function to find the maximum product of split binary tree.
2015. Find the longest consecutive sequence path in a binary tree.
2016. Given a binary tree, return all possible full binary trees with N nodes.
2017. Find the number of unique binary search trees that can be formed with N distinct nodes.
2018. Check if a binary tree is a subtree of another binary tree.
2019. Implement a function to find the distance between two nodes in a binary tree.
2020. Find the sum of all left leaves in a binary tree.
2021. Find the diameter of a binary tree (the longest path between any two nodes).
2022. Implement a function to convert a binary search tree into a sorted doubly linked list.
2023. Count the number of unique BSTs that can be formed using the values from 1 to N.
2024. Check if a binary tree is height-balanced.
2025. Find the number of nodes that are at the same level in a binary tree.
2026. Implement a function to find the maximum depth of a binary search tree.
2027. Create a function to find the boundary of a binary tree.
2028. Find the smallest subtree that contains both given nodes in a binary tree.
2029. Implement a function to count the number of nodes in a complete binary tree.
2030. Find the total number of paths in a binary tree that sum to a specific value.
2031. Implement a function to validate a binary search tree using a helper function.
2032. Find the median of all the elements in a binary search tree.
2033. Calculate the sum of nodes at even levels in a binary tree.
2034. Find the sum of all nodes with an even-valued grandparent in a binary tree.
2035. Create a function to find the height of the left and right subtrees in a binary tree.
2036. Check if a binary tree is symmetric by comparing left and right subtrees.
2037. Implement a function to find all root-to-leaf paths in a binary tree.
2038. Find the maximum sum of non-adjacent nodes in a binary tree.
2039. Check if a binary tree is a complete binary tree based on properties.
2040. Count the number of leaf nodes in a binary tree.
2041. Implement a function to find the kth smallest element in a binary search tree using recursion.
2042. Find the longest palindromic path in a binary tree.
2043. Create a function to check if two binary trees are isomorphic.
2044. Find the deepest node in a binary tree.
2045. Calculate the sum of all right leaves in a binary tree.
2046. Find the longest common ancestor of three nodes in a binary tree.
2047. Implement a function to find all unique paths in a binary search tree.
2048. Check if a binary tree can be partitioned into two subtrees of equal sum.
2049. Find the longest path from root to leaf with a specified sum in a binary tree.
2050. Implement a function to convert a binary tree to its mirror image recursively.
2051. Find the maximum number of nodes on a path in a binary tree.
Previous
1
2
...
20
Next
More Levels
Beginner
Intermediate
Aniket The Programmer
This website is managed by aniket the programmer :)
Website
Instagram