之前师兄在git上创建了一个新的branch,自己看到了,不过没怎么记得操作,后来师兄帮忙弄了一下,也是了解了一些大概先交上代码,最近有点忙,随后有时间再添加注释,下面是dos窗口的一些命令。(主要是关于pull中的fetch跟merge,以及创建远程分支的track)具体还是需要看廖雪峰的Git教...
分类:
其他好文 时间:
2014-11-21 23:03:41
阅读次数:
376
$ git rm --cached iLedger.xcodeproj/project.xcworkspace/xcuserdata/Alex.xcuserdatad/UserInterfaceState.xcuserstate$ git commit -m "Removed the stupid ...
分类:
其他好文 时间:
2014-11-21 16:09:01
阅读次数:
158
题目描述:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return i...
分类:
其他好文 时间:
2014-11-21 12:42:05
阅读次数:
241
这道题的无聊之处在于题目其实给了一些很奇怪的测试用例。比如他会给一些空的数组来,但是这个是不科学的,因为在C++中不允许定义一个空的列表,我们用的又不是那种糙又快的python,所以在这里我遇到了一些问题,后来还是解决了。这道题题目如下:Given two sorted integer arrays...
分类:
其他好文 时间:
2014-11-20 23:30:29
阅读次数:
209
最近要在hadoop2.4上面上线hdfs raid,但是之前hdfs raid是作为svn 的branch开发的,领导希望通过patch的方式将hdfs raid功能打进trunk里面去,这里涉及到svn branch和trunk的合并问题,以下是hdfs raid 打patch的具体过程。...
分类:
其他好文 时间:
2014-11-20 11:58:52
阅读次数:
237
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.代码:class ...
分类:
其他好文 时间:
2014-11-19 21:47:39
阅读次数:
119
参考:白话经典算法系列之五 归并排序的实现 1 #include "stdafx.h" 2 3 //t[]在外部申请,以此避免在函数体内部反复申请数组的开销。 4 void merge_array(int a[], int left, int middle, int right, int t[])....
分类:
编程语言 时间:
2014-11-19 12:03:54
阅读次数:
244
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-11-18 23:34:43
阅读次数:
237
1.git fetch:相当于是从远程获取最新版本到本地,不会自动merge2.git pull:相当于是从远程获取最新版本并merge到本地git pull origin branch_investor 更新代码git push origin branch_investor 提交代码
分类:
其他好文 时间:
2014-11-18 13:14:59
阅读次数:
182
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.Solution 1:PriorityQueue: 1 /** 2 * Definition for si....
分类:
其他好文 时间:
2014-11-17 08:04:09
阅读次数:
176