uber logo
Uber· L5-A role

Uber | Phone Screen | L5-A role

Posted
16 May 2025
371 reads

Summary

I had a phone screen interview with Uber for an L5-A role. The interview involved a data structures and algorithms problem where I had to implement methods to ingest numbers into a stream and find the minimum missing number so far.

How it went

There is a stream of numbers incoming. They can come in any order. We have to implement two methods.

  1. incoming(num : int) -> This will ingest the number
  2. getMissingMinSoFar() : -> This will return minimum missing number from the stream

Questions asked (1)

  1. 01

    Minimum Missing Number in a Stream

    Data Structures & Algorithms

    Implement two methods for a stream of numbers:

    1. incoming(num : int) -> This will ingest the number
    2. getMissingMinSoFar() : -> This will return minimum missing number from the stream

    Example stream.getMissingMinSoFar() -> 0 stream.incoming(0) stream.incoming(1)
    stream.getMissingMinSoFar() -> 2

    stream.incoming(5) stream.getMissingMinSoFar() -> 2 stream.incoming(2) stream.getMissingMinSoFar() -> 3

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!