Code
The highlighted line runs next. The pill shows the live values in the running call.
Cost
Work done so far, and how the two solutions compare
Original, tokens, rebuilt
Serialize first, then deserialize the string
The highlighted line runs next. The pill shows the live values in the running call.
Work done so far, and how the two solutions compare
Serialize first, then deserialize the string
Keyboard: ← → step, Space play or pause. Enter the tree in level order with null for missing children, as LeetCode does (up to 10 nodes, 4 levels, values −1000 to 1000).