二分查找
景行cmy
这个作者很懒,什么都没留下…
展开
-
leetcode 352. Data Stream as Disjoint Intervals
Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize the numbers seen so far as a list of disjoint intervals. For example, suppose the integers from the data stream are ...原创 2019-07-24 09:25:45 · 111 阅读 · 0 评论 -
leetcode 793. Preimage Size of Factorial Zeroes Function
Letf(x)be the number of zeroes at the end ofx!. (Recall thatx! = 1 * 2 * 3 * ... * x, and by convention,0! = 1.) For example,f(3) = 0because 3! = 6 has no zeroes at the end, whilef(11) = 2bec...原创 2019-08-24 09:48:31 · 106 阅读 · 0 评论 -
leetcode 1095. Find in Mountain Array
(This problem is aninteractive problem.) You may recall that an arrayAis amountain arrayif and only if: A.length >= 3 There exists someiwith0 < i< A.length - 1such that: A[0] &l...原创 2019-09-23 15:09:03 · 169 阅读 · 0 评论