摘要: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 利用位运算, 这里用到了一 阅读全文
posted @ 2016-06-30 19:28 Attenton 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 题意: Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were in 阅读全文
posted @ 2016-06-30 18:37 Attenton 阅读(98) 评论(0) 推荐(0) 编辑