Skip to content

Commit e7655c2

Browse files
Update 0606-Construct-String-from-Binary-Tree.md
1 parent 73f039f commit e7655c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dsa-solutions/lc-solutions/0600-0699/0606-Construct-String-from-Binary-Tree.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ Given the root of a binary tree, construct a string consisting of parenthesis an
1616
### Examples
1717
**Example 1:**
1818
![Screenshot of the application](.././../../assets/606%20ex1.png)
19+
1920
**Input:** `root = [1,2,3,4]`
2021
**Output:** `"1(2(4))(3)"`
2122
**Explanation:** Originally, it needs to be `"1(2(4)())(3()())"`, but you need to omit all the unnecessary empty parenthesis pairs. And it will be `"1(2(4))(3)"`
2223

23-
![Screenshot of the application](.././../../assets/606%20ex2.png)
2424
**Example 2:**
25+
![Screenshot of the application](.././../../assets/606%20ex2.png)
26+
2527
**Input:** `root = [1,2,3,null,4]`
2628
**Output:** `"1(2()(4))(3)"`
2729
**Explanation:** Originally, it needs to be `"1(2()(4)())(3()())"`, but you need to omit all the unnecessary empty parenthesis pairs. And it will be `"1(2()(4))(3)"`

0 commit comments

Comments
 (0)