2019年3月20日
摘要: ```java class Solution { public int shipWithinDays(int[] weights, int D) { int left = 1, right = 50000; int N = weights.length; for (int i = 0; i cap) { co... 阅读全文
posted @ 2019-03-20 23:29 王 帅 阅读(120) 评论(0) 推荐(0) 编辑
摘要: time =1 and = 2 and sum 500) continue; if (counter[target] != 0) ret += counter[target]; } counter[time[i]] += 1; } return ret; } } java public int nu 阅读全文
posted @ 2019-03-20 23:28 王 帅 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Suppose the given number is N, the result is R, it's easy to notice that N + R + 1 = 2^x, and x is unknown, but it's quite easy to calculate. for x fr 阅读全文
posted @ 2019-03-20 23:27 王 帅 阅读(89) 评论(0) 推荐(0) 编辑