Skip to content

Commit 445bb44

Browse files
committed
Runtime: 59 ms (Top 27.86%) | Memory: 13.9 MB (Top 62.57%)
1 parent dc8bde3 commit 445bb44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/algorithms/L/Last Stone Weight/Last Stone Weight.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Runtime: 59 ms (Top 27.86%) | Memory: 13.9 MB (Top 62.57%)
12
class Solution:
23
def lastStoneWeight(self, stones: List[int]) -> int:
34
stones = [-x for x in stones]
@@ -12,4 +13,3 @@ def lastStoneWeight(self, stones: List[int]) -> int:
1213
if len(stones):
1314
return -heapq.heappop(stones)
1415
return 0
15-

0 commit comments

Comments
 (0)