Minimum Time to Visit Required Nodes in a Tree

Company: D. E. Shaw

Difficulty: medium