Practice Coding with 400+ Questions (Part-4)
Topic -7
BINARY TREES
- level order traversal
- Reverse Level Order traversal
- Height of a tree
- Diameter of a tree
- Mirror of a tree
- Left View of a tree
- Right View of Tree
- Top View of a tree
- Bottom View of a tree
- Zig-Zag traversal of a binary tree
- Check if a tree is balanced or not
- Diagonal Traversal of a Binary tree
- Boundary traversal of a Binary tree
- Construct Binary Tree from String with Bracket Representation
- Convert Binary tree into Doubly Linked List
- Convert Binary tree into Sum tree
- In-order Traversal of a tree both using recursion and Iteration
- Preorder Traversal of a tree both using recursion and Iteration
- Post-order Traversal of a tree both using recursion and Iteration
- Construct Binary tree from In-order and preorder traversal
- Find minimum swaps required to convert a Binary tree into BST
- Check if Binary tree is Sum tree or not
- Check if all leaf nodes are at same level or not
- Check if a Binary Tree contains duplicate subtrees of size 2 or more.
- Check if 2 trees are mirror or not
- Sum of Nodes on the Longest path from root to leaf node
- Check if given graph is tree or not.
- Find Largest subtree sum in a tree
- Maximum Sum of nodes in Binary tree such that no two are adjacent
- Print all "K" Sum paths in a Binary tree
- Find LCA in a Binary tree
- Find distance between 2 nodes in a Binary tree
- Kth Ancestor of node in a Binary tree
- Find all Duplicate subtrees in a Binary tree.
- Tree Isomorphism Problem
Topic - 8
BINARY SEARCH TREES
- Find a value in a BST
- Deletion of a node in a BST
- Find min and max value in a BST
- Find in-order successor and in-order predecessor in a BST
- Check if a tree is a BST or not
- Populate In-order successor of all nodes
- Find LCA of 2 nodes in a BST
- Construct BST from preorder traversal
- Convert Binary tree into BST
- Convert a normal BST into a Balanced BST
- ****Merge two BST****
- Find Kth largest element in a BST
- Find Kth smallest element in a BST
- Count pairs from 2 BST whose sum is equal to given value "X"
- Find the median of BST in O(n) time and O(1) space
- Count BST nodes that lie in a given range
- Replace every element with the least greater element on its right
- Given "n" appointments, find the conflicting appointments
- Check preorder is valid or not
- Check whether BST contains Dead end
- ****Largest BST in a Binary Tree ****
- Flatten BST to sorted list
Note - Questions in red are most Important ones and asked many times.
Questions in BLUE are important Algorithms to be Considered.
** If having any sort of problems while Solving do let us know in the Comments Section Below**
ONLINE COMPILER ---
Link to part-1 : Take me to part-1
Link to part-2 : Take me to Part-2
Link to part-3 : Take me to part-3
0 Comments