摘要:
IntroductionC99 is the 1999 standard of the C programming language. C is a simple, low level language, that is best suited for systems programming.Thi...
阅读全文
posted @ 2013-04-25 14:53
ConfuciusPei
阅读(146)
推荐(0)
摘要:
Posted onJuly 27, 2011byJesse LibertyWindows Phone TutorialThe Windows Phone life cycle is not terribly complicated, but it can be the source of some ...
阅读全文
posted @ 2013-03-07 10:13
ConfuciusPei
阅读(156)
推荐(0)
摘要:
msdn地址:http://msdn.microsoft.com/en-us/library/ms741870.aspx害怕文章以后找不到,所以复制了一下。完全的复制。Windows Presentation Foundation (WPF)is designed to save developer...
阅读全文
posted @ 2013-02-25 20:48
ConfuciusPei
阅读(330)
推荐(0)
摘要:
Long time back at the wake of the release of Windows Phone 7 (WP7) I posted about theWindows Phone 7 series programming model. I also published how.NE...
阅读全文
posted @ 2013-01-29 11:50
ConfuciusPei
阅读(157)
推荐(0)
摘要:
A Miser BossTime Limit: 2 Seconds Memory Limit: 65536 KB There are three different lathes in a factory namely A,B,C. They are all able to work on all ...
阅读全文
posted @ 2011-11-15 20:20
ConfuciusPei
阅读(143)
推荐(0)
摘要:
In 0th day, there are n-1 people and 1 bloodsucker. Every day, two and only two of them meet. Nothing will happen if they are of the same species, tha...
阅读全文
posted @ 2011-11-10 10:53
ConfuciusPei
阅读(121)
推荐(0)
摘要:
本文讨论如何判断拼图游戏中图形是否可以还原。例1:下图是一个3X3的数字拼图。13265478图1它要还原成图212345678图2将问题一般化,在M*N的方格里有M*N-1个不同元素和一个空元素,只有空元素可以与上下左右相邻的元素交换位置。M*N方格中M*N-1个元素和一个空元素的位置确定一个图形...
阅读全文
posted @ 2011-09-05 21:13
ConfuciusPei
阅读(222)
推荐(0)
摘要:
题目:输入一个整型数组,数组里有正数也有负数。数组中连续的一个或多个整数组成一个子数组,每个子数组都有一个和。求所有子数组的和的最大值。要求时间复杂度为O(n)。思想:如果数组中所有的数都是负数,返回最大的负数便是所求。若有正数也有负数,那么定义一个变量sum表示所求的最大子数组和值,定义一个变量t...
阅读全文
posted @ 2011-07-16 16:29
ConfuciusPei
阅读(171)
推荐(0)
摘要:
题目:输入n个整数,输出其中最小的k个。算法思想,要是将n个数排序然后输出前k个,方法很简单,但计算量比较大,为O(nlogn)。要是新建一个有k个元素数组,在数组不满时,将每一个输入的数据存入数组。若数组满了,则比较输入的数据与数组中最大元素的大小,来决定接下来干什么,接下来干什么,你懂的。我语言...
阅读全文
posted @ 2011-06-25 19:49
ConfuciusPei
阅读(260)
推荐(0)
摘要:
题目:输入一个整数和一颗二元树。从树的根节点开始往下访问一直到叶节点所经过的所有节点形成一条路径。打印出于输入整数相等的所有路径。例如 输入整数22和如下二元树 10 / \ 5 12 /\ 4 7则打印出两条路经10, 12和10, 5, 7本文程序大部分直接摘抄微软等面试100题的帖子,测...
阅读全文
posted @ 2011-06-24 21:27
ConfuciusPei
阅读(166)
推荐(0)