Given an array of strings req_skills containing required skills, and an array of lists of strings people where people[i] contains the skills possessed by the
A team is considered sufficient if every skill in req_skills is possessed by at least one member of the team.
Return the indices of the members in a sufficient team of the smallest possible size. You may return the indices in any order.
Constraints:
req_skills[i] consists of lowercase English letters.
All the strings of req_skills are unique.
people[i][j] consists of lowercase English letters.
All the strings of people[i] are unique.
Every skill in people[i] is a skill in req_skills.
It is guaranteed a sufficient team exists.
Given an array of strings req_skills containing required skills, and an array of lists of strings people where people[i] contains the skills possessed by the
A team is considered sufficient if every skill in req_skills is possessed by at least one member of the team.
Return the indices of the members in a sufficient team of the smallest possible size. You may return the indices in any order.
Constraints:
req_skills[i] consists of lowercase English letters.
All the strings of req_skills are unique.
people[i][j] consists of lowercase English letters.
All the strings of people[i] are unique.
Every skill in people[i] is a skill in req_skills.
It is guaranteed a sufficient team exists.