Available question text
Given a tree of N outposts connected by N-1 bidirectional tunnels, process M queries that either designate an outpost as a Supply Outpost or find the minimum tunnel distance from a given outpost to the nearest Supply Outpost.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
LinkedIn
Supply Outposts Minimum Distance
Reported Aug 31, 2026 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source