LC: 536. Construct Binary Tree from String
https://leetcode.com/problems/construct-binary-tree-from-string/
Input: s = "4(2(3)(1))(6(5))"
Output: [4,2,6,3,1,5]Input: s = "4(2(3)(1))(6(5)(7))"
Output: [4,2,6,3,1,5,7]Input: s = "-4(2(3)(1))(6(5)(7))"
Output: [-4,2,6,3,1,5,7]Last updated
