Skip to content

Commit 98b84de

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ Given the root of a binary tree, construct a string consisting of parenthesis an
1515

1616
### Examples
1717
**Example 1:**
18+
1819
![Screenshot of the application](.././../../assets/606%20ex1.png)
1920

2021
**Input:** `root = [1,2,3,4]`
2122
**Output:** `"1(2(4))(3)"`
2223
**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)"`
2324

2425
**Example 2:**
26+
2527
![Screenshot of the application](.././../../assets/606%20ex2.png)
2628

2729
**Input:** `root = [1,2,3,null,4]`

0 commit comments

Comments
 (0)