536 Construct Binary Tree from String
536. Construct Binary Tree from String
1. Question
Input: "4(2(3)(1))(6(5))"
Output: return the tree root node representing the following tree:
4
/ \
2 6
/ \ /
3 1 52. Implementation
3. Time & Space Complexity
Last updated