Disney logoDisney
CodingMembers

Minutes Until Every Orange Rots in a Grid

Members only

A grid simulation where something spreads outward from several starting points at once, and you must report how long it takes to reach everything. It checks whether you can model simultaneous spread cleanly and handle the case where some cells are never reached. Careful off-by-one handling matters.

SWE
grid
bfs
queue
array
python
medium
Frequency
Single report
Last asked
—
Stage
onsite-coding

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 4 common pitfalls
  • 6 talking points
  • 5 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...