摘要: class Solution: def sortedSquares(self, nums: List[int]) -> List[int]: if len(nums) == 0: return [] if len(nums) == 1: return [nums[0] ** 2] result = 阅读全文
posted @ 2022-04-29 22:22 stronger_el 阅读(37) 评论(0) 推荐(0)
摘要: class Solution: def searchInsert(self, nums: List[int], target: int) -> int: if len(nums) == 0: return 0 left = 0 right = len(nums) - 1 result = 0 whi 阅读全文
posted @ 2022-04-29 17:28 stronger_el 阅读(17) 评论(0) 推荐(0)