
二分查找
Wonz
技术很菜,但一直在学习。
微信公众号:Wonz
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode | 0034. 在排序数组中查找元素的第一个和最后一个位置【Python】
LeetCode 0034. Find First and Last Position of Element in Sorted Array在排序数组中查找元素的第一个和最后一个位置【Medium】【Python】【二分】ProblemLeetCodeGiven an array of integers nums sorted in ascending order, find the s...原创 2020-02-23 09:05:50 · 313 阅读 · 0 评论 -
LeetCode | 0153. Find Minimum in Rotated Sorted Array寻找旋转排序数组中的最小值【Python】
LeetCode 0153. Find Minimum in Rotated Sorted Array寻找旋转排序数组中的最小值【Medium】【Python】【二分】ProblemLeetCodeSuppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(...原创 2020-02-22 21:54:04 · 299 阅读 · 0 评论 -
LeetCode | 0278. First Bad Version第一个错误的版本【Python】
LeetCode 0278. First Bad Version第一个错误的版本【Easy】【Python】【二分】ProblemLeetCodeYou are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your...原创 2020-02-22 20:57:44 · 319 阅读 · 0 评论 -
LeetCode | 0540. Single Element in a Sorted Array有序数组中的单一元素【Python】
LeetCode 0540. Single Element in a Sorted Array有序数组中的单一元素【Medium】【Python】【二分】ProblemLeetCodeYou are given a sorted array consisting of only integers where every element appears exactly twice, exc...原创 2020-02-22 20:06:57 · 286 阅读 · 0 评论 -
LeetCode | 0744. Find Smallest Letter Greater Than Target寻找比目标字母大的最小字母【Python】
LeetCode 0744. Find Smallest Letter Greater Than Target寻找比目标字母大的最小字母【Easy】【Python】【二分】ProblemLeetCodeGiven a list of sorted characters letters containing only lowercase letters, and given a targe...原创 2020-02-22 16:55:41 · 305 阅读 · 0 评论 -
LeetCode | 0069. Sqrt(x) x 的平方根【Python】
LeetCode 0069. Sqrt(x) x 的平方根【Easy】【Python】【二分】ProblemLeetCodeImplement int sqrt(int x).Compute and return the square root of x, where x is guaranteed to be a non-negative integer.Since the ret...原创 2020-02-22 16:04:58 · 390 阅读 · 0 评论