02 2023 档案

摘要:def binaryfind(nums, target): if not nums: return -1 start, end = 0, len(nums)-1 while start+1 < end: mid = start + (end-start)//2 if nums[mid]==targe 阅读全文
posted @ 2023-02-14 22:15 今夜无风 阅读(21) 评论(0) 推荐(0) 编辑
摘要:# 二分合并k个有序数组 nums1 = [2,3,18,23,118,283] nums2 = [4,7,8,19,26,77,1262] nums3 = [1,19,29,33,67,88] nums4 = [36,47,55,88,128,765] data = [nums1, nums2, 阅读全文
posted @ 2023-02-13 20:52 今夜无风 阅读(34) 评论(0) 推荐(0) 编辑