摘要: Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner as shown ... 阅读全文
posted @ 2015-06-08 22:07 puckpuck 阅读(369) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public int singleNumber(int[] nums) { int ret = nums[0]; for (int i = 1; i < nums.length; i++) { ret ^= nums[i]; ... 阅读全文
posted @ 2015-06-08 16:23 puckpuck 阅读(183) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public String addBinary(String a, String b) { int i = a.length()-1; int j = b.length()-1; int n = j>i?j:i; int su... 阅读全文
posted @ 2015-06-08 13:23 puckpuck 阅读(244) 评论(0) 推荐(0) 编辑