摘要: 二分法 代码: class Solution: def searchInsert(self, nums: List[int], target: int) -> int: if not nums: return 0 l,r = 0,len(nums)-1 while l <= r: mid = (l+ 阅读全文
posted @ 2020-05-17 11:44 nil_f 阅读(102) 评论(0) 推荐(0) 编辑