uber logo
Uber· SDE II

UBER | SDE2 | Screening Round | BPS Interview |

Posted
24 Feb 2026
540 reads

Summary

I had a 1-hour screening round with Uber for an SDE2 role, where the interviewer was interested in my approach and thought process for a problem involving the design of a seat allocation system for an Uber Shuttle.

How it went

Question

There is an Uber Shuttle with n seats arranged in a single row, labeled from 0 to n - 1.
When a rider hops onto the shuttle, they instinctively look for the comfiest spot—the seat that puts them as far away as possible from the nearest fellow rider. If more than one seat offers the same level of personal space, W the rider politely chooses the seat with the lowest number. If the shuttle is completely empty, the first rider claims seat 0 (front row energy).

  • Design a class that simulates how riders choose and leave seats on the Uber Shuttle.
  • Implement the UberShuttle class:
    • UberShuttle(int n) - Initializes the shuttle with n seats.
    • int board() - Returns the seat number where the next rider decides to sit.
    • void dropOFf(int p) - The rider sitting at seat p is dropping off from the shuttle

It was a 1 hour round, where the interviewer was trying to understand my approach and how am I thinking about the problem.

Questions asked (1)

  1. 01

    Uber Shuttle Seat Allocation

    Data Structures & Algorithms · Medium

    There is an Uber Shuttle with n seats arranged in a single row, labeled from 0 to n - 1.
    When a rider hops onto the shuttle, they instinctively look for the comfiest spot—the seat that puts them as far away as possible from the nearest fellow rider. If more than one seat offers the same level of personal space, W the rider politely chooses the seat with the lowest number. If the shuttle is completely empty, the first rider claims seat 0 (front row energy).

    Design a class that simulates how riders choose and leave seats on the Uber Shuttle.
    Implement the UberShuttle class:

    • UberShuttle(int n) - Initializes the shuttle with n seats.
    • int board() - Returns the seat number where the next rider decides to sit.
    • void dropOFf(int p) - The rider sitting at seat p is dropping off from the shuttle

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!