You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
| Current Status| Stats |
8
8
| :------------: | :----------: |
9
-
| Total Problems |161|
9
+
| Total Problems |162|
10
10
11
11
</center>
12
12
@@ -111,7 +111,7 @@ Include contains single header implementation of data structures and some algori
111
111
|Recursive Level order traveral of Tree |[levelOrderTraversalRecursive.cpp](tree_problems/levelOrderTraversalRecursive.cpp)|
112
112
|ZigZag Traversal of Tree |[zigZagTraversal.cpp](tree_problems/zigZagTraversal.cpp)|
113
113
|Predecessor and Successor of a given node in Binary Search Tree |[predecessorSuccessor.cpp](tree_problems/predecessorSuccessor.cpp)|
114
-
|Given values of two nodes in a Binary Search Tree, find the Lowest Common Ancestor (LCA). Assume that both the values exist in the tree.|[lowest-common-ancestor.cpp](tree_problems/lowest-common-ancestor.cpp)|
114
+
|Given values of two nodes in a Binary Search Tree, find the Lowest Common Ancestor (LCA). Assume that both the values exist in the tree.|[lowest-common-ancestor.cpp](tree_problems/lowest-common-ancestor.cpp)|
115
115
|Given a binary tree (unlike binary search tree), find the Lowest Common Ancestor (LCA).|[lowest-common-ancestor-binary-tree.cpp](tree_problems/lowest-common-ancestor-binary-tree.cpp)|
116
116
|Given a binary tree, print out all of its root-to-leaf paths one per line.| [printAllRootToLeafPath.cpp](tree_problems/printAllRootToLeafPath.cpp)
117
117
|Determine if a tree is sum tree. A SumTree is a Binary Tree where the value of a node is equal to sum of the nodes present in its left subtree and right subtree. An empty tree is SumTree and sum of an empty tree can be considered as 0. A leaf node is also considered as SumTree.|[sumTree.cpp](tree_problems/sumTree.cpp)|
@@ -124,6 +124,7 @@ Include contains single header implementation of data structures and some algori
124
124
| Given a binary tree, print its nodes level by level in reverse order. i.e. all nodes present at last level should be printed first followed by nodes of second-last level and so on.. All nodes for any level should be printed from left to right. |[reverseLevelOrderTraversal.cpp](tree_problems/reverseLevelOrderTraversal.cpp)|
125
125
| Invert a binary tree, recursively and iteratively.|[invert_a_tree.cpp](tree_problems/invert_a_tree.cpp)|
126
126
| Given a Binary Search Tree, find ceil and floor of a given key in it. If the given key lie in the BST, then both floor and ceil is equal to that key, else ceil is equal to next greater key (if any) in the BST and floor is equal to previous greater key (if any) in the BST |[floor_ceil_bst.cpp](tree_problems/floor_ceil_bst.cpp)|
127
+
| Find kth smallest element in a binary search tree |[kth_smallest.cpp](tree_problems/kth_smallest.cpp)|
0 commit comments