摘要:
```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... 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文