Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A coding competition is beingorganized on the HackerRankplatform.All participants needto be grouped into teams whereeach team has exactly twocandidates and the sums oftheir skills must
A coding competition is beingorganized on the HackerRankplatform.All participants needto be grouped into teams whereeach team has exactly twocandidates and the sums oftheir skills must be equal for allteams. The efficiencyof a teamis the product of the skills of itsmembers, e.g. for a team withskills [2, 3], the efficiency of the team is 2 * 3 = 6. Find the sum of the efficienciesof the teams. If there is no wayto create teams that satisfy theconditions, return -1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started