- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 56. Merge Intervals
Given a collection of intervals, merge all overlapping intervals.For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]./** * Definition for an interval. * struct Interval { *
2017-09-17 15:22:11 153
原创 338. Counting Bits
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1’s in their binary representation and return them as an array.Example: For num = 5 you sh
2017-09-14 21:07:13 143
原创 633. Sum of Square Numbers
Given a non-negative integer c, your task is to decide whether there’re two integers a and b such that a2 + b2 = c.Example 1:Input: 5 Output: True Explanation: 1 * 1 + 2 * 2 = 5Example 2:Input: 3 Outpu
2017-09-12 20:30:46 150
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人