一个普通程序员.
© 2022. All rights reserved.
Medium
这道题主要考的是思路,能想到就能很快的写出代码
以上,AC!
python3
class Solution: def getLastMoment(self, n: int, left: List[int], right: List[int]) -> int: return max(max(left) if len(left) else 0, n - (min(right) if len(right) else n))