Search
⌘K
Get Premium
Leetcode 2491. Divide Players Into Teams of Equal Skill
Given an even-length array of player skills, pair players into n/2 teams so every pair has the same total skill; return the sum of the products (chemistry) of each pair, or -1 if such an equal-sum pairing is impossible.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.