Time and space complexity of count team question
问题 from typing import List def countTeams(num: int, skills: List[int], minAssociates: int, minLevel: int, maxLevel: int) -> int: # WRITE YOUR BRILLIANT CODE HERE qualified = [] possible_teams = [[]] for a in skills: if minLevel <= a <= maxLevel: qualified.append(a) num_teams = 0 while qualified: person = qualified.pop() new_teams = [] for team in possible_teams: print(team) print(person) new_team = [person] + team print(new_team) if len(new_team) >= minAssociates: num_teams += 1 new_teams.append