binary search
文章平均质量分 83
leetcode
qq184861643
这个作者很懒,什么都没留下…
展开
-
leetcode: Find the Duplicate Number
Question Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is only one duplicate ...原创 2018-02-09 16:03:06 · 155 阅读 · 0 评论 -
leetcode: Maximum Length of Repeated Subarray
Question Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Example 1 Input: A: [1,2,3,2,1] B: [3,2,1,4,7] Output: 3 Explanation:...原创 2018-02-12 22:55:01 · 185 阅读 · 0 评论 -
leetcode: My Calender I
Question Implement a MyCalendar class to store your events. A new event can be added if adding the event will not cause a double booking. Your class will have the method, book(intstart,intend)book(i...原创 2018-02-07 22:21:15 · 194 阅读 · 0 评论