Uber SDE2 Onsite

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-09-21Added By Anonymous
Source: Link

Company: Uber

Role: SDE2

Interview Stage: Onsite

Location: Bangalore


Original Post Content:


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