Search
⌘K

Leetcode 2225. Find Players With Zero or One Losses

Given a list of match pairs (winner, loser), compute each player's loss count and return two sorted lists: players who played and have zero losses, and players who played and have exactly one loss. Matches are unique and input size can be up to ~10^5, so use frequency counting over appearing players.


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.