81. 搜索旋转排序数组 II

解 二分查找 找到第二个有序数组的起始索引 对两个有序数组进行二分查找 class Solution: def search(self, nums: List[int], target: int) -> bool: # 找第二个有序数组的起始索引 k = 0 while k < len(nums) - 1
相关文章
相关标签/搜索