Google Interview Onsite

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-04-24Added By Anonymous
Source: Link
🧭 Experience: unknown
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown

The following question was asked in my onsite second round. There is a chess contest between N players. Each chess player has a distinct rank (positive integer number from 1 to N). We assume that in a chess game between two players, the player ranked higher always wins. The ranks remain constant during the contest. Unfortunately, we don't know the player ranks. But we know the outcome of M games in the following format: Player #1 won #2 Player #2 won #4 ... Given the results of M games above, give me the number of ranks that can be precisely determined I just told the approach correctly and coded just half of the solution.
Comments