← Disney Interview Insights

Disney·Software Engineer·Technical Phone Screen·Intermediate

IntermediatePrefer not to say
Apr 2026

Summary

Did a technical phone screen for a software engineer role at Disney. It was a straightforward grid traversal problem but they wanted the full treatment: algorithm choice, complexity analysis, and edge cases. Nothing too wild but I definitely fumbled parts of the discussion.

Questions Asked (1)

Q1

Given a 2D grid of open cells and walls, find the shortest path between a start and target cell using only 4-directional movement. Return the path length or -1 if no path exists. Walk through your algorithm, its time and space complexity, and any edge cases you'd handle.

Algorithms & Data StructuresTechnical Trade-offs
Author's notes

BFS was the obvious call and I got there fast, but then they started asking about complexity and I got a little loose with my explanation.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying the problem constraints (grid size, movement rules, whether diagonal moves are allowed). Then propose BFS as the optimal algorithm for unweighted shortest path, explain its step-by-step execution, and analyze time and space complexity. Finally, discuss edge cases and potential optimizations.

Pro tip: Mention that BFS guarantees the shortest path in unweighted graphs, and that you can optimize space by using a queue of coordinates and marking visited cells in-place. Also, proactively discuss how you'd handle very large grids (e.g., using bidirectional BFS).

1. Clarify the problem

Ask about grid dimensions, movement directions (4-directional), what constitutes a valid cell (open vs wall), and whether the start or target can be blocked. Confirm return type (-1 if no path).

2. Choose the algorithm

Explain that BFS is ideal for unweighted shortest path. Justify why DFS or Dijkstra would be less efficient or overkill.

3. Walk through BFS

Describe initializing a queue with the start cell, tracking visited cells, and exploring neighbors level by level until the target is found or the queue is empty. Mention using a distance array or storing distance in the queue.

4. Analyze complexity

State time complexity O(R*C) and space complexity O(R*C) for the queue and visited set, where R and C are grid dimensions.

5. Handle edge cases

Discuss cases like start equals target, start or target blocked, no path exists, and very large grids (mention bidirectional BFS or A* as alternatives).

Key Points to Mention

  • BFS guarantees shortest path in unweighted graphs
  • Time and space complexity: O(R*C)
  • Use a queue for BFS and a visited set or in-place marking
  • Edge cases: start == target, blocked start/target, no path
  • Potential optimizations: bidirectional BFS, A* with Manhattan distance
  • Clarify movement constraints (4-directional, no diagonal)

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.