Uber - phone screening (Location India)

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2021-06-22Added By Anonymous
Source: Link

Company: Uber
Role: software engineer i, software engineer ii
Interview Stage: Phone Screen
Location: India
Year: unknown

Original Post Content:

An online game requires a leaderboard to be created with capabilities mentioned below. Design the leaderboard keeping all data in-memory.

1. Upsert/Delete/Fetch user name/profile
2. Upsert/Fetch score for a given user
3. Fetch the rank for a user based on the score which the user has at any given point of time
4. Return the top k rank holders at a given point of time
5. Return all the users having a score “s”

Comments