Fetching algorithms...
root = [1,2,3,null,null,4,5]
[1,2,3,null,null,4,5]
root = []
[]
root = [1]
[1]
Time Complexity
Space Complexity
Start serialization of binary tree.
Result Array (res):