Uber logoUber
Coding·60 minMembers

Phone Screen: Find Robot Position from Blocker Distances

Members only

Recurring phone-screen prompt. A 2D grid contains robots `O`, empty cells `E`, and blockers `X`. Given a query `[left, top, bottom, right]` of distances to the nearest blocker (with the grid boundary ...

SWE
MLE
array
simulation
medium
Frequency
Medium
Last asked
2026-08-29
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...