摘要:
Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner as shown ... 阅读全文
摘要:
public class Solution { public int singleNumber(int[] nums) { int ret = nums[0]; for (int i = 1; i < nums.length; i++) { ret ^= nums[i]; ... 阅读全文
摘要:
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... 阅读全文