/*
*Corpyright (c)2013,烟台大学计算机学院
*All right reseved.
*作者:张凯
*完成日期:2014年5月28日
*版本号:v1.0
*输入描述:
*问题描述:
*程序输出:
*问题分析:
*算法设计:
*/
#include
#include
using namespace std;
class CSolid
{
...
分类:
其他好文 时间:
2014-06-07 02:01:08
阅读次数:
183
题目如下:
S-Trees
A Strange Tree (S-tree) over the variable set is a binary tree representing a Boolean function
.Each path of the S-tree begins at the
root node and consists ...
分类:
其他好文 时间:
2014-06-05 11:04:37
阅读次数:
248
【题目】
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.
The first integer of each row is greater than the last integer of the previous ...
分类:
其他好文 时间:
2014-06-05 08:28:43
阅读次数:
321
本文出自 http://blog.csdn.net/shuangde800
题目传送门
题意:
给出一棵树,求离每个节点最远的点的距离
思路:
把无根树转化成有根树分析,
对于上面那棵树,要求距结点2的最长距离,那么,就需要知道以2为顶点的子树(蓝色圈起的部分,我们叫它Tree(2)),距顶点2的最远距离L1...
分类:
其他好文 时间:
2014-06-05 06:56:39
阅读次数:
226
/*
*Corpyright (c)2013,烟台大学计算机学院
*All right reseved.
*作 者 :曹昕卓 *完成日期:2014年5月28日
*版 本 号:v1.0
*输入描述:
*问题描述:彩票机选
*程序输出:
*问题分析: 还是自己选的放心啊,哈哈!
*算法设计:
*/
#include
#include
#include
using name...
分类:
其他好文 时间:
2014-06-05 06:13:57
阅读次数:
160
【题目】
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
You should pack your words in a greedy approach; that is, pack as many words as you can in each line. Pad ...
分类:
其他好文 时间:
2014-06-04 22:37:46
阅读次数:
389
body{ background-position:center;
background-repeat:no-repeat; }div#div1{ position:fixed; top:0; left:0; bottom:0;
right:0; z-i...
分类:
其他好文 时间:
2014-05-31 14:11:16
阅读次数:
243
left join :左连接,返回左表中所有的记录以及右表中连接字段相等的记录。right join
:右连接,返回右表中所有的记录以及左表中连接字段相等的记录。inner join: 内连接,又叫等值连接,只返回两个表中连接字段相等的行。full
join:外连接,返回两个表中的行:left jo...
分类:
数据库 时间:
2014-05-31 08:05:46
阅读次数:
318
linux有自己一套完整的启动体系,抓住了linux启动的脉络,linux的启动过程将不再神秘。本文中假设inittab中设置的init
tree为:/etc/rc.d/rc0.d/etc/rc.d/rc1.d/etc/rc.d/rc2.d/etc/rc.d/rc3.d/etc/rc.d/rc4.d...
分类:
其他好文 时间:
2014-05-31 04:12:54
阅读次数:
335
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenliePopulating
Next Right Pointers in Each Node IITotal Accepted:9695Total
Submissions:32965Follow up...
分类:
其他好文 时间:
2014-05-31 02:59:18
阅读次数:
302