Ubuntu
Whether you are a new user planning to get your first computer, or someone migrating from Windows or Mac OS X, Ubuntu should be your first choice. It’s extremely easy to install and manage; ...
分类:
系统相关 时间:
2014-12-02 10:36:38
阅读次数:
200
#!/bin/bash#setenvexportLANG="en_US.UTF-8"exportPATH=$PATH:/bin/sbin:/usr/sbin#whetherroottorunninguserif[[$(whoami)!=root]];thenecho"pleasesu-rootrunthescript."fiSERVICE=`whichservice`CHKCONFIG=`whichchkconfig`./etc/init.d/functions#settimeinitTime(){yum-y..
分类:
系统相关 时间:
2014-12-02 00:25:59
阅读次数:
319
Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric...
分类:
其他好文 时间:
2014-12-01 14:11:54
阅读次数:
218
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:
其他好文 时间:
2014-11-30 22:55:07
阅读次数:
272
With the introduction of Qt Style Sheets, styling Qt widgets has become a lot simpler. Whether you just need to customize the look of an existing widget or design a whole new style from scratch, th...
分类:
其他好文 时间:
2014-11-30 18:52:50
阅读次数:
226
http://stackoverflow.com/questions/18526909/whether-i-should-use-propertynonatomic-copy-or-propertynonatomic-strong-fo'copy' will cause the setter for...
分类:
其他好文 时间:
2014-11-27 15:47:21
阅读次数:
193
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
Recursive Algorithm
class Solution {
public:
bool isSymmetric(TreeNode *root) {
return ...
分类:
其他好文 时间:
2014-11-27 09:18:04
阅读次数:
176
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2014-11-27 06:44:59
阅读次数:
215
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.
For example,
Given:
s1 = "aabcc",
s2 = "dbbca",
When s3 = "aadbbcbcac", return true.
When s3 = "aadbbbaccc", ret...
分类:
其他好文 时间:
2014-11-24 10:16:50
阅读次数:
182
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example,Given:s1 = "aabcc",s2 = "dbbca",When s3 = "aadbbcbcac", retu...
分类:
其他好文 时间:
2014-11-24 06:25:09
阅读次数:
150