1 class Solution { 2 public: 3 bool isPalindrome(string s) { 4 if(s=="") return true; 5 if(s.length()==1) return true; //单个字符,对称...
分类:
其他好文 时间:
2014-11-08 21:59:37
阅读次数:
242
<?php
/**
??*?wechat?php?test
??*/
//define?your?token
define("TOKEN",?"weixin");
$wechatObj?=?new?wechatCallbackapiTest();
//$wechatObj->valid();
$wechatObj->responseMsg();
class?wec...
分类:
微信 时间:
2014-11-07 19:27:19
阅读次数:
681
1 package com.kite.controller; 2 3 import java.util.HashMap; 4 import java.util.Map; 5 6 import javax.validation.Valid; 7 8 import org.spr...
分类:
编程语言 时间:
2014-11-06 19:39:37
阅读次数:
245
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another ex...
分类:
其他好文 时间:
2014-11-06 19:16:47
阅读次数:
178
leetcode 原题 :(即判断二叉树是否为二叉查找树)Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subt...
分类:
编程语言 时间:
2014-11-05 22:54:17
阅读次数:
204
一开始非常天真的利用2次for循环,依次剔除其中的非英文字符,一次用来比较,但是后来显示超时,没办法,只能把两次合并为一次。qishifdsfd。其实我是最厌恶这种题目的,要求不清,你以为有效字符只是英文字母,结果运行一遍才发现竟然还有数字,只能接着改。ac的代码:public class Solu...
分类:
其他好文 时间:
2014-11-05 22:45:32
阅读次数:
241
题目描述:
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car...
分类:
其他好文 时间:
2014-11-05 21:30:46
阅读次数:
160
Valid PalindromeGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a pla...
分类:
其他好文 时间:
2014-11-05 21:22:45
阅读次数:
130
1项目导入部分文件报错: cannot be read or is not a valid ZIP file 打开项目根目录的.classpath文件,找到“”这一行,删掉.
分类:
其他好文 时间:
2014-11-05 14:30:58
阅读次数:
166
http://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspxRemarksTheinnerHTMLproperty is valid for both block and inline elements. By definition, el...
分类:
Web程序 时间:
2014-11-05 12:49:03
阅读次数:
235