class Solution { private: vector<int> vc; public: Solution(vector<int> nums) { vc = nums; } int pick(int target) { vector<int> tmp; int size = 0; for ...
分类:
编程语言 时间:
2018-09-26 01:15:12
阅读次数:
125
Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks one) and cal ...
分类:
编程语言 时间:
2018-09-25 14:07:11
阅读次数:
186
场景:程序员A提交了一个commit到gerrit上,我们叫他为commit_id1,但是还没有review,那就是没有入库,程序员B想再本地拿到这个commitd_id1,既然这个提交没有入库,很明显,B单纯执行git pull是拿不到这个提交的,那他要怎么办呢, 目前我想到的有几种方式:第一种如 ...
分类:
其他好文 时间:
2018-09-13 17:23:50
阅读次数:
344
git cherry-pick 可以把某个分支的某几次提交合入到当前分支,只是在一台设备上操作。 git format-patch 可以把某个分支的n次提交分别打成n个补丁,然后把这些补丁文件(比如0001-.patch)发给其他人,或者发到其他机器,他们在自己的机器上,把这些补丁合入到他们当前的代 ...
分类:
其他好文 时间:
2018-09-11 00:55:25
阅读次数:
283
Given an array nums of integers, you can perform operations on the array. In each operation, you pick any nums[i] and delete it to earn nums[i] points ...
分类:
其他好文 时间:
2018-09-08 22:26:00
阅读次数:
187
A - Problem A. Integers Exhibition 留坑。 B - Problem B. Harvest of Apples 题意:计算$\sum_{i = 0}^{i = m}C(n, i)$ 思路:由$sum_{i = 0}^{i = m}C(n,i)$可以得到$sum_{i ...
分类:
其他好文 时间:
2018-09-06 18:23:22
阅读次数:
174
1:git四个基本对象 2:工作区、缓存去、历史区 3:Git 分支介绍 https://blog.csdn.net/wh_19910525/article/details/7470964 Head介绍 https://blog.csdn.net/bdss58/article/details/405 ...
分类:
其他好文 时间:
2018-09-06 12:26:11
阅读次数:
159
题目: We are playing the Guess Game. The game is as follows: 我们正在玩猜猜游戏。 游戏如下: I pick a number from 1 to n. You have to guess which number I picked. 我从1到 ...
分类:
其他好文 时间:
2018-09-04 20:48:11
阅读次数:
173
是因为和关掉的提交对应的Change_id一样导致的。 另一种可能是cherry-pick导致的: 之前提交的时候因为有merge,所以在gerrit服务器上审核的时候,我给abandoned了,因此从新处理提交的时候就出现了相同的tree, parent, author, committer以及l ...
分类:
其他好文 时间:
2018-09-01 20:34:01
阅读次数:
528
"375. Guess Number Higher or Lower II" Description We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to gue ...
分类:
编程语言 时间:
2018-08-26 12:03:35
阅读次数:
131