![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Array
TimeMagician
这个作者很懒,什么都没留下…
展开
-
35. Search Insert Position-二分法while版
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array.原创 2017-10-17 19:15:00 · 170 阅读 · 0 评论 -
169. Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.原创 2017-10-11 14:48:31 · 191 阅读 · 0 评论