Team Formation Problem

Question · Posted Feb 2023

2. Team Formation 2 FC Codelona is trying to assemble a team from a roster of available players. They have a minimum number of players they want to sign, and each player needs to have a skill rating within a certain range. Given a list of players' skill levels with desired upper and lower bounds, determine how many teams can be created from the list. Example skills = [12, 4, 6, 13, 5, 10] minPlayers = 3 minLevel = 4 ...

The full answer & interview discussion are available to premium members.

Log in Create a free account