Walk a tree from its root, visit every marked node, and come back — what is the shortest walk?
Walk a tree from its root, visit every marked node, and come back — what is the shortest walk?
This question is free
Log in to read the full question, run your code and see the solution.
Be the first to discuss this question
Approaches, follow-up questions and how the interview went. Log in to read and join the discussion.