Search
⌘K

Leetcode 2377. Sort the Olympic Table

Given a list of countries with their gold, silver, and bronze medal counts, produce the Olympic leaderboard by sorting entries primarily by gold, then silver, then bronze in descending order (using a defined tie-breaker such as country name or original order). This tests building a custom comparator or key function to sort tuples.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.