摘要: 原文:http://blog.csdn.net/lingfengtengfei/article/details/12884465其实找工作之前一直很忐忑,或者说不是很自信,因为各种传言说14年就业难。实验室的项目逼的有些紧,在四川做项目,腾讯实习面试都错过了。4月底回到学校给实验室申请不去实验室,准... 阅读全文
posted @ 2015-01-29 14:58 小爷 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 交换 int a, int b1、最弱的方法1 void swap(int &a,int &b)2 {3 int c = a;4 a = b;5 b = c;6 }2、不用另外开辟空间的方法1 void swap(int &a,int &b)2 {3 a=a+b;4 ... 阅读全文
posted @ 2015-01-29 08:18 小爷 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int getbit( int a,int i) 3 { 4 return a&(1 if(n&1 == 0) n/=pow(2,x) ----> n >>= x n*=pow(2,x) ----> n <<= x|或(或1为1) 阅读全文
posted @ 2015-01-29 07:42 小爷 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 一、问题把时间目拨到三年前,大概很少有人能想象手机霸王诺基亚会落到如今日薄西山的境地。先是2009年第三季,这家素以业绩卓越业绩著称的公司出现了十年来的首次亏损,紧接着2010年第二车度,利润又同比狂跌40%。2011年,诺基亚宣布2012年上半年将从德国法兰克福证券交易所退市。此前,它已经陆续从伦... 阅读全文
posted @ 2015-01-29 07:29 小爷 阅读(7645) 评论(0) 推荐(0) 编辑
摘要: 1、《你被录用了 简历篇》这本书还行 不过是英国人写的 ,感觉有点 和 中国的实情不太一样。不过 我还是学了一招有用的,在说明自己的能力的时候,应该把自己按在具体的背景下比如说:1、我能处理好人际关系 2、我愿意应付咄咄逼人的顾客,这样更能显示我处理人际关系的能力。显然 招聘者更喜欢第二个简历,因为... 阅读全文
posted @ 2015-01-29 07:24 小爷 阅读(207) 评论(1) 推荐(0) 编辑
摘要: 1、前序+中序—>树这个天勤《高分笔记》树那章的真题仿造上就有核心代码如下:S->lchild=CreateBT(pre,in,l1+i,l1+i-l2,l2,i-1);S->rchild=CreateBT(per,in,l1+i-l2+1,r1,i+1,r2);例:前序:1352467中序:532... 阅读全文
posted @ 2015-01-28 13:43 小爷 阅读(735) 评论(0) 推荐(0) 编辑
摘要: http://www.patest.cn/contests/pat-a-practise/1043 1 #include 2 #include 3 using namespace std; 4 5 struct Node 6 { 7 Node* lchild; 8 ... 阅读全文
posted @ 2015-01-28 13:41 小爷 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 二叉排序树:http://www.patest.cn/contests/pat-a-practise/1064 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int ans[1002]; 7 8 int cnt = 0... 阅读全文
posted @ 2015-01-28 13:40 小爷 阅读(154) 评论(0) 推荐(0) 编辑
摘要: A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the 阅读全文
posted @ 2015-01-28 13:38 小爷 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou... 阅读全文
posted @ 2015-01-28 13:37 小爷 阅读(223) 评论(0) 推荐(0) 编辑