Skip to content

Commit d3e6fad

Browse files
committed
Time: 0 ms (100%), Space: 17.7 MB (84.49%) - LeetHub
1 parent 4732053 commit d3e6fad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
class Solution:
22
def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]:
3-
return [max(candies) <= i+extraCandies for i in candies]
3+
A = max(candies)
4+
return [A <= i+extraCandies for i in candies]

0 commit comments

Comments
 (0)