Skip to content

Commit 1675728

Browse files
committed
commit
1 parent 4ba562c commit 1675728

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Binary Tree Inorder Traversal
2+
Given the root of a binary tree, return the inorder traversal of its nodes' values.
3+
4+
## Example :
5+
```
6+
7+
Example 1:
8+
9+
10+
Input: root = [1,null,2,3]
11+
Output: [1,3,2]
12+
13+
Example 2:
14+
15+
Input: root = []
16+
Output: []
17+
18+
Example 3:
19+
20+
Input: root = [1]
21+
Output: [1]
22+
23+
24+
Constraints:
25+
26+
The number of nodes in the tree is in the range [0, 100].
27+
-100 <= Node.val <= 100

BinaryTree/Unique_BST_2/Unique_BST.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Unique BST_2
2+
Given an integer n, return all the structurally unique BST's (binary search trees), which has exactly n nodes of unique values from 1 to n. Return the answer in any order.
3+
4+
## Example :
5+
6+
```
7+
8+
Example 1:
9+
10+
11+
Input: n = 3
12+
Output: [[1,null,2,null,3],[1,null,3,2],[2,1,3],[3,1,null,null,2],[3,2,null,1]]
13+
14+
Example 2:
15+
16+
Input: n = 1
17+
Output: [[1]]
18+
19+
20+
Constraints:
21+
22+
1 <= n <= 8

0 commit comments

Comments
 (0)