OpenBook
  • Problems
  • Tracks
  • How it works
  • Pricing
Start practicingSign In
Problems/Data Modeling

30. Leaderboard with Ties

Medium

Players submit scores to a ranked leaderboard that handles ties, shows each player the players around them, and resets into new seasons while old ones stay readable.

40 minute budget0.0% acceptanceranking · ties · seasons

Requirements

  1. 01Submit a score for a player in the current season; the response shows the player's standing.
  2. 02List the leaderboard for the current season or any past season, each entry with a rank.
  3. 03Fetch a player's standing and the players just above and below them.
  4. 04Start a new season: the board starts empty and past seasons stay readable unchanged.
  5. 05400 for invalid input, 404 for an unknown season.

What the hidden tests check

  • Everything the interviewer tells you is checked.
  • Ranks and the order of tied players are checked after every submission, including at the edges of the board.

4 more details are held back. In a mock interview they come out only when you ask the interviewer the right question; in practice they are listed in the workspace.

Sign in to start

Attempts, files and transcripts are saved to your account so the grader can review how you worked.

Sign inCreate an account
OpenBook

Practice for interviews where you build a feature with an AI assistant.

Early preview. Problems, grading and the interviewer are still changing.

Practice

  • Problems
  • Tracks
  • How it works
  • Pricing

Legal

  • Terms
  • Privacy
© 2026 OpenBook.