代码重构 【Github Actions】

This commit is contained in:
github-actions[bot]
2021-07-26 16:17:05 +00:00
parent 94d9b4c70f
commit d0abf3e1d8
7 changed files with 11 additions and 10 deletions

View File

@@ -96,7 +96,7 @@ func search(nums []int, target int) bool {
right = mid - 1
} else if (target > nums[mid] || target < nums[left]) {
left = mid + 1
}
}
}else if (nums[mid] < nums[left]) {
if (nums[mid] < target && target <= nums[right]) {
@@ -104,7 +104,7 @@ func search(nums []int, target int) bool {
} else if (target < nums[mid] || target > nums[right]) {
right = mid - 1
}
}
}
}
return false
}