摘要: 寻找一个数 def binarysearch(nums, target): n = len(nums) if n == 0: return -1 left = 0 right = n - 1 while left <= right: mid = (left + right) // 2 if targ 阅读全文
posted @ 2020-12-01 16:37 luozx207 阅读(137) 评论(0) 推荐(0) 编辑