题目:Given a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2, return1->2.Given1->1->2->3->3, r...
分类:
其他 时间:
2015-10-06 10:20:47
收藏:
0 评论:
0 赞:
0 阅读:
260
git commit 提交一个修改git branch branchName 新建一个branchName的分支git merge branchName 将当前分支与branchName分支合并git rebase branchName 将当前分支的父节点设置为branchNamegit reset...
分类:
其他 时间:
2015-10-06 10:20:26
收藏:
0 评论:
0 赞:
0 阅读:
242
Warning: 本文原网页 http://www.centoscn.com/yunwei/Lua/2013/0817/1284.html 在此基础上略作修改,如有侵权,请告知删除,谢谢! 在正式操作前请获得root权限! 1.下载包 [root@louis ~]# wget http://www....
分类:
其他 时间:
2015-10-06 10:19:55
收藏:
0 评论:
0 赞:
0 阅读:
555
public class Tes{ static TestField tf1;static TestField tf2;static Choice choice;static TestField tf3; public static void main(String[]args){ Frame fr...
分类:
其他 时间:
2015-10-06 10:19:35
收藏:
0 评论:
0 赞:
0 阅读:
215
题意: 输入一个正整数k,找出所有正整数x>=y,使得1/k=1/x+1/y分析: x>=y退出1/x#include #include #include using namespace std;int k;int x[10011],y[10011];int main(){ int cnt...
分类:
其他 时间:
2015-10-06 10:19:15
收藏:
0 评论:
0 赞:
0 阅读:
356
即使我们对一些资源使用了RAII类进行管理,但是还是不能避免很多的API需要你去提供原始的资源来对他们进行调用:例如对于条款13中的例子来说:1 shardPtr pInv(createInvestment);2 //看看下面这个函数3 int daysHold(const Investment *...
分类:
其他 时间:
2015-10-06 10:18:45
收藏:
0 评论:
0 赞:
0 阅读:
209
js: $(document).ready(function () { $(".company-contact ul li").click(function (ev) { var oTopic = document.getElementById('topic'); var nScrollTop = ...
分类:
其他 时间:
2015-10-06 10:18:25
收藏:
0 评论:
0 赞:
0 阅读:
153
经典DP#include#include#include#includeusing namespace std;const int INF=0x7FFFFFFF;int T;int n;int a[100000+10];int sum[100000+10];int L[100000+10],R[10...
分类:
其他 时间:
2015-10-06 10:18:15
收藏:
0 评论:
0 赞:
0 阅读:
163
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ // 声明静态字符串型对象,用来标记重用单元格 static NSString *str...
分类:
其他 时间:
2015-10-06 10:16:55
收藏:
0 评论:
0 赞:
0 阅读:
281
云盘-->CoreData文件一创建表打开点击增加的Entity名字应该与 EntityForName一致二 创建NSManageObjectSubClass三 拖进CoreDataManager改URLForResource:一致四 sqlite的文件名改一下
分类:
其他 时间:
2015-10-06 10:16:45
收藏:
0 评论:
0 赞:
0 阅读:
183
Ifpis the perimeter of a right angle triangle with integral length sides, {a,b,c}, there are exactly three solutions forp= 120.{20,48,52}, {24,45,51},...
分类:
其他 时间:
2015-10-06 10:16:25
收藏:
0 评论:
0 赞:
0 阅读:
218
namespace 第二次作业{ class RandomNumber { public int Add(int x, int y) { return x + y; } public int Sub(int x, int y) { return x - y; } public int Mul(int...
分类:
其他 时间:
2015-10-06 10:16:15
收藏:
0 评论:
0 赞:
0 阅读:
191
背景湖南师大附中成为百年名校之后,每年要接待大批的游客前来参观。学校认为大力发展旅游业,可以带来一笔可观的收入。描述学校里面有N个景点。两个景点之间可能直接有道路相连,用Dist[I,J]表示它的长度;否则它们之间没有直接的道路相连。这里所说的道路是没有规定方向的,也就是说,如果从I到J有直接的道路...
分类:
其他 时间:
2015-10-06 10:15:35
收藏:
0 评论:
0 赞:
0 阅读:
360
测试用例的书写方式及测试模板大全一个优秀的测试用例,应该包含以下信息:1 ) 软件或项目的名称2 ) 软件或项目的版本(内部版本号)3 ) 功能模块名4 ) 测试用例的简单描述,即该用例执行的目的或方法5 ) 测试用例的参考信息(便于跟踪和参考)6 ) 本测试用例与其他测试用例间的依赖关系7 ) 本...
分类:
其他 时间:
2015-10-06 10:15:25
收藏:
0 评论:
0 赞:
0 阅读:
146
1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 6 int method() 7 { 8 char *p = "123abcd23sdfwee131abcd12344abcd"; 9 int...
分类:
其他 时间:
2015-10-06 10:15:15
收藏:
0 评论:
0 赞:
0 阅读:
168
(referrence: GeeksforGeeks)Insertion sort is a simple sorting algorithm that works the way we sort playing cards in our hands.Algorithm// Sort an arr[...
分类:
其他 时间:
2015-10-06 10:15:05
收藏:
0 评论:
0 赞:
0 阅读:
113
首先假设对于一个mutex互斥器对象,有lock以及unlock两个函数可用:1 void lock(Mutex * pm);2 void unlock(Mutex * pm);那么为了防止资源忘记被释放,首先得想法就是创建一个RAII类来进行资源的管理,像下面这样:1 class Lock{2 ....
分类:
其他 时间:
2015-10-06 10:14:55
收藏:
0 评论:
0 赞:
0 阅读:
235
【问题描述】佳佳刚进高中,在军训的时候,由于佳佳吃苦耐劳,很快得到了教官的赏识,成为了“小教官”。在军训结束的那天晚上,佳佳被命令组织同学们进行篝火晚会。一共有n个同学,编号从1到n。一开始,同学们按照1,2,……,n的顺序坐成一圈,而实际上每个人都有两个最希望相邻的同学。如何下命令调整同学的次序,...
分类:
其他 时间:
2015-10-06 10:14:45
收藏:
0 评论:
0 赞:
0 阅读:
328
问题可以抽象为求起点到终点的最短路,其中经过x的代价是0,而经过.的代价是1,bfs的时候用优先队列即可。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int N = 1001; ...
分类:
其他 时间:
2015-10-06 10:14:35
收藏:
0 评论:
0 赞:
0 阅读:
214
告诉你们一个坏消息,当你们看到这条乱弹的时候国庆长假已经快要结束了,你们有没有因为虚度长假而感到悔恨呢?但是你们依然选择在床上睡懒觉 同意via:宗茂快递 其实小小编也一样,发完乱弹就回去睡觉。。。 为了...
分类:
其他 时间:
2015-10-06 09:12:56
收藏:
0 评论:
0 赞:
0 阅读:
794