Skip to content

Commit b5fd7ca

Browse files
authored
Create 1503-last-moment-before-all-ants-fall-out-of-a-plank.py
1 parent a00349f commit b5fd7ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution:
2+
def getLastMoment(self, n: int, left: List[int], right: List[int]) -> int:
3+
return max(max(left, default=0), n - min(right, default=n))

0 commit comments

Comments
 (0)