Skip to content

Commit 88c1cfa

Browse files
authored
Create m1452.py
1 parent b0c77d6 commit 88c1cfa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

my-submissions/m1452.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Solution:
2+
def peopleIndexes(self, favoriteCompanies: List[List[str]]) -> List[int]:
3+
favoriteCompanies = [set(x) for x in favoriteCompanies]
4+
5+
return [i for i, x in enumerate(favoriteCompanies)
6+
if all(x == y
7+
or not x.issubset(y)
8+
for y in favoriteCompanies)]

0 commit comments

Comments
 (0)