You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hint 1
Depth-first search (DFS) with the parameters: current node in the binary tree and current position in the array of integers.
Hint 2
When reaching at final position check if it is a leaf node.