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
+2-1
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 |182|
9
+
| Total Problems |183|
10
10
11
11
</center>
12
12
@@ -132,6 +132,7 @@ Include contains single header implementation of data structures and some algori
132
132
| Validate if a given binary tree is a binary search tree. |[validate_bst.cpp](tree_problems/validate_bst.cpp)|
133
133
| Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target.|[find_target_k.cpp](tree_problems/find_target_k.cpp)|
134
134
| Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target. Also, to note that the target value is a floating point. There will be only one unique value which is closest to the target. |[closest_bst_value.cpp](tree_problems/closest_bst_value.cpp)|
135
+
| Given a binary tree, traversing preorder, construct a string output containing node values and parenthesis. The null node needs to be represented by empty parenthesis pair "()". And you need to omit all the empty parenthesis pairs that don't affect the one-to-one mapping relationship between the string and the original binary tree. Examples in code file|[string_from_tree.cpp](tree_problems/string_from_tree.cpp)|
0 commit comments