Shell中if的格式:if[conditions]thenexprelif[conditions]thenexprelsefi[conditions]包括1.!,-a,-o2.-n,-z,=,!=3.-eq,-ge,-gt,-le,-lt,-ne4.-ef,-nt,-ot5.-b,-c,-d,-e,-f,-g,-G,-h,-k,-L,-O,-p,-r,-s,-S,-t,-u,-w,-x类型1为逻辑判断是、非、与或[root@021Y-SH-BKAP~]#if[1=1-..
分类:
系统相关 时间:
2015-03-16 19:34:00
阅读次数:
164
1.absolute绝对定位的非绝对定位用法byzhangxinxufromhttp://www.zhangxinxu.com本文地址:http://www.zhangxinxu.com/wordpress/?p=608position为absolute的元素如果没有设置left, top等值与le...
分类:
其他好文 时间:
2015-03-16 12:39:02
阅读次数:
192
如表 ------------------------------------------------- table1 | table2 | ------------------------------------------------- id name |id score | 1 le...
分类:
数据库 时间:
2015-03-15 02:01:12
阅读次数:
151
标题:Binary Tree Zigzag Level Order Traversal通过率:26.5%难度:中等Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from le...
分类:
其他好文 时间:
2015-03-14 15:05:47
阅读次数:
151
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2015-03-13 00:14:25
阅读次数:
141
Few weeks ago, a famous software company has upgraded its instant messaging software. A ranking system was released for user groups. Each member of a group has a level placed near his nickname. The le...
分类:
其他好文 时间:
2015-03-11 17:14:04
阅读次数:
196
Binary Tree Level Order Traversal II问题:Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, le...
分类:
其他好文 时间:
2015-03-11 09:15:51
阅读次数:
125
#include#includeconst int MAX=510;using namespace std;int n,m,le=0; //节点数,非叶子节点数,最深层叶层数vector child[MAX]; //存储孩子情况int number[MAX]; //...
分类:
其他好文 时间:
2015-03-10 16:49:01
阅读次数:
149
说明:选用java,重在体会,性能不是最优。欢迎转载:http://www.ming-yue.cn/leetcode-java-solutions/。
先给出一个leetcode的已有答案,为什么上来直接给出答案,因为这个好多答案写的都非常简洁,不太易懂,还是建议先自己做,答案只是参考http://www.ninechapter.com/solutions/。
1,https://le...
分类:
编程语言 时间:
2015-03-09 12:53:30
阅读次数:
236
Remove Duplicates from Sorted Array问题:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new le...
分类:
其他好文 时间:
2015-03-08 10:23:57
阅读次数:
126