05 2011 档案

摘要:编程之美上的题目,具体忘记了,有一个队列,定义了push,pop,MaxElement三个函数,其中MaxElement要返回队列中最大的元素,第一次看这个题目就是遍历,每次MaxElement的时候遍历一遍队列,具体代码不写了,三个操作的开销为:1 push:O(1) 2 pop:O(1) 3 MaxElement:O(Length(que))于是换成另外一种方法,设置一个MaxVal,每次push与进入队列的元素进行比较,这样代码如下:(为了节省篇幅,利用了STL) 1 int main(void) 2 { 3 queue<int> que; 4 int MaxVal=-1; 阅读全文
posted @ 2011-05-28 22:44 linyilong 阅读(3303) 评论(2) 推荐(0) 编辑
摘要:“Learning a language is easy, even a child can do it!”Most adults who are learning a second language would disagree with thisstatement. For them, learning a language is a very difficult task. They needhundreds of hours of study and practice, and even this will not guaranteesuccess for every adult la 阅读全文
posted @ 2011-05-26 10:15 linyilong 阅读(517) 评论(0) 推荐(0) 编辑
摘要:在当当大概买了700+元,卓越是100+元,总的感受就是当当一些书质量不怎么好,比如windows核心编程这种比较大块头的书,到了我这里基本有一部分脱页,代码大全也是这样,其他都还好,发货速度一般是三天,从广州到福建厦门,卓越的体验不是很好,买了两本书,分成两次发,所以我要跑去拿两次,厦门本来就不怎么喜欢跑路去拿,而且速度慢,20号的发的一本第二天就拿到了,另外一本24号才拿到 阅读全文
posted @ 2011-05-26 09:10 linyilong 阅读(512) 评论(5) 推荐(1) 编辑
摘要:http://support.microsoft.com/kb/124103/zh-cn 阅读全文
posted @ 2011-05-07 16:45 linyilong 阅读(147) 评论(0) 推荐(0) 编辑