LeetCode Question · Sep 2021

Samsung twisted binary tree question Pre-Order traversal

1 upvote 564 views 1 reply

Question Details

I was asked to reconstruct a binary tree from pre-order traversal with markers.. # for eg:** \t\t\t\t\t\t\t\t\t\t\t\tH \t\t\t\t\t\t\t\t\t\t\t/ \\ \t\t\t\t\t\t\t\t\t\tB C \t\t\t\t\t\t\t\t\t/ \\ \\ \t\t\t\t\t\t\t\tF E D \t\t\t\t\t\t\t\t / \\ \t\t\t\t\t…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Trees