Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2014-07-19 22:19:36
阅读次数:
202
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.题解:如下图所示的一棵树: ...
分类:
其他好文 时间:
2014-07-19 19:00:44
阅读次数:
262
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.类似http://www.cn...
分类:
其他好文 时间:
2014-07-19 18:19:06
阅读次数:
243
session.BeginDataAccess(); if (session.GotoFirstSource()){ do{ RTPPacket *packet; while ((packet = session.GetNextPacket()) != 0){ ...
分类:
其他好文 时间:
2014-07-19 17:34:58
阅读次数:
243
总结一下typedef和#define的区别1.概念 #define 它在编译预处理时进行简单的替换,不作正确性检查。它是预处理指令。 typedef 它在自己的作用域内给一个已经存在的类型一个别名。它是在是在编译时处理的。 例子:#define:#define DO doubleDO val =....
分类:
其他好文 时间:
2014-07-19 00:33:30
阅读次数:
275
Description
You are not given n non-negative integers
X0, X1,..., Xn-1 less than
220, but they do exist, and their values never change.
I'll gradually provide you some facts about them, and as...
分类:
其他好文 时间:
2014-07-18 13:35:47
阅读次数:
458
在之前的学习中,我们了解到的while循环形如:whileexpression;dostatement...done这种语法结构的循环只要expression符合条件将执行循环体中的statement,否则就会推出循环。接下来将介绍两种特殊while循环while循环特性语法一while:;do循环体done这种循环没有expression,也..
分类:
系统相关 时间:
2014-07-18 13:18:05
阅读次数:
290
until循环语法格式:untilCONDITION
do
statement
done
说明:
until进入循环的条件是:condition不成立时,就执行循环。
until进入循环的条件正好和while相反,while进入循环的条件是:condition成立时,就进入循环。示例1:while循环[root@Server3Learn]#catwhile.sh
#!/bin/b..
分类:
其他好文 时间:
2014-07-18 13:12:34
阅读次数:
196
1.hi/hello!/ Hullo!/How Do you do?(你好)2.(Good)morning/afternoon/evening!(早/下午/晚上(好))3.how are you?/how are you going?/how are you all keeping?(你好吗/最近过...
分类:
其他好文 时间:
2014-07-18 11:36:34
阅读次数:
205
alias ll='ls -alF'一:ls -a --all : do not ignore entries starting with . -A , --almost-all : do not list implied . and .. -l : use a long listing f...
分类:
系统相关 时间:
2014-07-18 10:36:44
阅读次数:
314