1、注意空字符串的处理;2、注意是alphanumeric字符;3、字符串添加字符直接用+就可以; 1 class Solution: 2 # @param s, a string 3 # @return a boolean 4 def isPalindrome(self, ...
分类:
其他好文 时间:
2014-10-17 01:34:53
阅读次数:
216
/** * 记账标记0未记账 1 已记账 * @param string $vno_id * @param string $falg */ public function signBookFlag($vno_id,$falg) { if...
分类:
其他好文 时间:
2014-10-17 00:28:33
阅读次数:
344
这个函数的作用是:生成只读table。--[[ -- 生成只读table-- @param table t 需要不允许修改的table example: local tb = {"星期一", "星期二", "星期日"} local days = readOnly( tb )...
分类:
其他好文 时间:
2014-10-16 22:36:13
阅读次数:
172
import java.util.HashMap;import java.util.Iterator;public class hash { /** * @param args */ public static void main(String[] args) { // TODO Auto-g...
分类:
其他好文 时间:
2014-10-16 16:40:02
阅读次数:
193
/** * Determine whether the given object is an array: * either an Object array or a primitive array. * @param obj the object to check ...
分类:
编程语言 时间:
2014-10-16 07:03:22
阅读次数:
301
/** * Return whether the given throwable is a checked exception: * that is, neither a RuntimeException nor an Error. * @param ex the t...
分类:
编程语言 时间:
2014-10-16 06:49:52
阅读次数:
259
/** * Return whether the given throwable is a checked exception: * that is, neither a RuntimeException nor an Error. * @param ex the t...
分类:
编程语言 时间:
2014-10-16 06:16:22
阅读次数:
207
1 class Solution: 2 # @param s, a string 3 # @return a string 4 def reverseWords(self, s): 5 ss = s.split(" ") 6 ss = fil...
分类:
其他好文 时间:
2014-10-16 01:05:21
阅读次数:
146
public class NetworkProber {
/**
* 网络是否可用
*
* @param activity
* @return
*/
public static boolean isNetworkAvailable(Context context) {
ConnectivityManager connectivity = (Connectivit...
分类:
移动开发 时间:
2014-10-15 19:20:41
阅读次数:
154
<pre?code_snippet_id="464407"?snippet_file_name="blog_20140905_1_9753719"?name="code"?class="javascript">/**??
?*?验证时间??
?*?@param?dataValue?格式为:YYYY-MM-DD??
?*?@returns?...
分类:
Web程序 时间:
2014-10-15 16:56:01
阅读次数:
257