We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0c77d6 commit 88c1cfaCopy full SHA for 88c1cfa
my-submissions/m1452.py
@@ -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