C3 AI logoC3 AI
CodingMembers

Nearest Gate Distances in a Grid of Rooms

Members only

An onsite grid question about computing, for every open cell, how close it is to the nearest of several special cells while obstacles block movement. It rewards spotting that doing the work per target is wasteful and finding a better way to share it.

SWE
medium
grid
bfs
graph
shortest-path
Frequency
Single report
Last asked
—
Stage
onsite-coding

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 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...