uber logo
Uber· SDE II

Uber Technical Interview Experience (L4)

Posted
21 May 2025
359 reads

Summary

I had a technical interview for an L4 role at Uber, where I was asked a grid-based problem involving robot placement and blocker detection. Unfortunately, I was not selected.

How it went

Verdit: Not selected

Questions asked (1)

  1. 01

    Find Robot Position with Specific Blocker Distances in a Grid

    Data Structures & Algorithms

    you have a grid with 3 type of elements O, X, E.

    • O denotes robot
    • X denotes blocker
    • E denotes empty space

    grid is of size M x N.

    you are also given an array of size 4 with [L, T, B, R] which represents the closest blocker at distance L from left of robot, distance T from Top of robot, distance B from bottom of robot, distance R from right of robot. boundary outside matrix is considered as blocker.

    give the position of the robot which satisfies given criteria if there is one, else return [-1, -1]

    closest blocker should absolutely exist at given position L, T, B, R. if it does not, it's not valid robot.

    grid = [
        ['E', 'X', 'E', 'E'],
        ['O', 'E', 'X', 'E'],
        ['E', 'E', 'E', 'X'],
        ['X', 'E', 'E', 'E']
    ]
    blockers = [1, 1, 1, 1]
    

Know someone preparing? Send it to them:WhatsAppLinkedInX

Interviewed at Uber recently?

Write up your rounds while you still remember the questions. It helps the next person more than you would think.

Share your experience
Discussion 0

Questions for the author, or how your own interview compared.

Join the discussion

Sign in with Google to comment or ask the author a question.

No comments yet

Be the first to share your thoughts and start the discussion!