二分查找
Wonz
后端 -> 全栈 -> 后端
技术很菜,但一直在学习。
「人们会被自己热爱的事物改变」
展开
-
LeetCode | 0034. 在排序数组中查找元素的第一个和最后一个位置【Python】
LeetCode 0034. Find First and Last Position of Element in Sorted Array在排序数组中查找元素的第一个和最后一个位置【Medium】【Python】【二分】 Problem LeetCode Given an array of integers nums sorted in ascending order, find the s...原创 2020-02-23 09:05:50 · 273 阅读 · 0 评论 -
LeetCode | 0153. Find Minimum in Rotated Sorted Array寻找旋转排序数组中的最小值【Python】
LeetCode 0153. Find Minimum in Rotated Sorted Array寻找旋转排序数组中的最小值【Medium】【Python】【二分】 Problem LeetCode Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (...原创 2020-02-22 21:54:04 · 245 阅读 · 0 评论 -
LeetCode | 0278. First Bad Version第一个错误的版本【Python】
LeetCode 0278. First Bad Version第一个错误的版本【Easy】【Python】【二分】 Problem LeetCode You 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 · 273 阅读 · 0 评论 -
LeetCode | 0540. Single Element in a Sorted Array有序数组中的单一元素【Python】
LeetCode 0540. Single Element in a Sorted Array有序数组中的单一元素【Medium】【Python】【二分】 Problem LeetCode You are given a sorted array consisting of only integers where every element appears exactly twice, exc...原创 2020-02-22 20:06:57 · 247 阅读 · 0 评论 -
LeetCode | 0744. Find Smallest Letter Greater Than Target寻找比目标字母大的最小字母【Python】
LeetCode 0744. Find Smallest Letter Greater Than Target寻找比目标字母大的最小字母【Easy】【Python】【二分】 Problem LeetCode Given a list of sorted characters letters containing only lowercase letters, and given a targe...原创 2020-02-22 16:55:41 · 251 阅读 · 0 评论 -
LeetCode | 0069. Sqrt(x) x 的平方根【Python】
LeetCode 0069. Sqrt(x) x 的平方根【Easy】【Python】【二分】 Problem LeetCode Implement 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 · 329 阅读 · 0 评论