Uber SDE2 Onsite

Anonymous User
1607
Sep 21, 2024
Sep 21, 2024

Round 1:

You need to find the distances of the blockers ("X") from each robot ("O") in the grid, and then match the distances with the given list [2, 2, 4, 1][up,down,left,right]. The robot whose distances match the given list should be the output.

Board(for example):
["O","E","E","X"
"X", "X","O","E"
"E", "X","O", "X"]

Location: Bangalore
Bombed the interview. I could code the same after coming home.

Comments (6)