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
阅读全文
摘要:# 二分合并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,
阅读全文