Chess Tournament Player Rating Pairing
Chess Tournament Player Rating Pairing
EasyArrays50% accepted
A chess tournament in New Delhi matches players from two rating groups based on closest strength. Given two arrays of player ratings, find the pair with minimum rating difference for fair match.
Approach
Given two arrays of player ratings, find pair with minimum absolute difference between ratings.
Input
[1200,1500,1800],[1300,1400,1600]
Output
[1200,1300]
More Arrays problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards