码迷,mamicode.com
首页 >  
搜索关键字:whether    ( 1481个结果
Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:其他好文   时间:2014-11-17 10:34:42    阅读次数:168
Determine whether an integer is a palindrome. Do this without extra space.
看到这个题目的时候,首先不认识 Determine这个单词,英文不好没办法,查了下是确认的意思,然后不懂 palindrome这个单词, 查了下是回文的意思。 问题是 回文是个什么东西,官方解释: A palindrome is a word, phrase, number, or other sequence of characters which reads the same b...
分类:其他好文   时间:2014-11-17 01:45:30    阅读次数:220
Palindrome Number
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-15 09:58:31    阅读次数:222
一键优化系统脚本 for centos6.x
#!/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#installpackagesinstallT..
分类:其他好文   时间:2014-11-15 06:42:14    阅读次数:143
优化系统脚本(简写)
#!/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#installpackagesinstallT..
分类:其他好文   时间:2014-11-14 01:44:19    阅读次数:189
[LeetCode] Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:其他好文   时间:2014-11-13 22:22:11    阅读次数:221
LeetCode——Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:其他好文   时间:2014-11-13 22:20:24    阅读次数:224
Palindrome Number
Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space. 1 public class Solution { 2 public boolean isPalindrom...
分类:其他好文   时间:2014-11-09 23:37:34    阅读次数:209
Leetcode-Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:其他好文   时间:2014-11-09 06:18:31    阅读次数:179
nyoj 130 同样的雪花 【哈希】
同样的雪花时间限制:1000ms | 内存限制:65535KB难度:4描写叙述You may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this ...
分类:其他好文   时间:2014-11-08 20:48:27    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!