Fastest Walk Between Attractions Around Timed Parade Closures
Last updated: November 29, 2026
Quick Overview
Given a park path graph with walking minutes per path and closure windows during which a path cannot be entered (for parades or fireworks), return the earliest time a guest starting at time t can reach the target attraction, allowing them to wait at any junction.
Disney
November 29, 20260
0
0 solved
Given a park path graph with walking minutes per path and closure windows during which a path cannot be entered (for parades or fireworks), return the earliest time a guest starting at time t can reach the target attraction, allowing them to wait at any junction.
A hard onsite problem in the style of Disney Parks digital teams building routing for the My Disney Experience app, where parade routes close walkways at scheduled times. The interviewer wants to see you adapt Dijkstra to time-dependent edges and argue why it stays correct.
What the Interviewer Expects
- Model the park as a weighted undirected graph
- Compute departure time on an edge by waiting out any closure window
- Explain the FIFO property: leaving later never arrives earlier
- Run Dijkstra on arrival time rather than distance
- Handle consecutive and overlapping closure windows
Key Topics to Cover
How to Approach This
- Clarify input constraints and edge cases before writing code.
- Walk through your approach verbally and confirm with the interviewer before coding.
- Start with a brute force solution, then optimize. Mention time and space complexity.
- Test your solution with examples, including edge cases like empty input or duplicates.
- Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
- What if a guest already on a path when it closes must stop?
- How would you add crowd-based walking speed that changes by hour?
- How would you precompute routes for the whole park every five minutes?
- What if waiting is not allowed at some junctions?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice DSA ProblemsSample Answer
Requirements
Nodes 0..n-1 are junctions and attractions. Each path (u, v, w) takes w minutes. Closures map a path to windows [start, end) during which a guest cannot step onto it; a guest already walking fin...
High-Level Design
Dijkstra works on any graph where the cost of an edge depends on the departure time, as long as waiting is allowed, because then arrival time is non-decreasing in departure time (FIFO). So the label f...