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
01Submit a score for a player in the current season; the response shows the player's standing.
02List the leaderboard for the current season or any past season, each entry with a rank.
03Fetch a player's standing and the players just above and below them.
04Start a new season: the board starts empty and past seasons stay readable unchanged.
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.