摘要: 二分查找法: def t(arr, target): left, right = 0, len(arr) - 1 while left <= right: mid = left + (right - left) // 2 if arr[mid] == target: return mid elif 阅读全文
posted @ 2022-09-29 19:54 多测师_树哥 阅读(61) 评论(0) 推荐(0)