Problem · Greedy
Team Formation
Learn this problemProblem statement
Given n developers, each developer i has:
lowerSkill[i]: max number of team members with skill less than theirshigherSkill[i]: max number of team members with skill greater than theirs
Form the largest team such that every developer is okay with their relative skill positions.
Function
formLargestTeam(lowerSkill: int[], higherSkill: int[]) → intExamples
Example 1
lowerSkill = [1, 3, 2, 2, 2]higherSkill = [2, 2, 1, 1, 3]return = 3Agoda probably does not provide the explanation for the example...