摘要: 零、二分查找框架 func binarySearch(nums []int, target int) int { left := 0 right := len(nums) - 1 //注意 for left <= right { //注意 mid := left + (right-left)/2 i 阅读全文
posted @ 2024-03-14 09:18 卡卡西殿 阅读(32) 评论(0) 推荐(0) 编辑