Skip to content

Commit ba362a2

Browse files
committed
Runtime: 8217 ms (Top 5.03%) | Memory: 52.2 MB (Top 99.70%)
1 parent a5ee4b9 commit ba362a2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
# Runtime: 8217 ms (Top 5.03%) | Memory: 52.2 MB (Top 99.70%)
12
class Solution:
23
def mergeTriplets(self, triplets: List[List[int]], target: List[int]) -> bool:
3-
4+
45
i=0
56
while True:
67
if i==len(triplets):
@@ -11,15 +12,15 @@ def mergeTriplets(self, triplets: List[List[int]], target: List[int]) -> bool:
1112
i-=1
1213
break
1314
i+=1
14-
15+
1516
a = [x[0] for x in triplets]
1617
b = [x[1] for x in triplets]
1718
c = [x[2] for x in triplets]
18-
19+
1920
if target[0] not in a:
2021
return False
2122
if target[1] not in b:
2223
return False
2324
if target[2] not in c:
2425
return False
25-
return True
26+
return True

0 commit comments

Comments
 (0)