题目:Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: P...
分类:
其他好文 时间:
2014-07-09 21:38:15
阅读次数:
207
题目:Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the corre...
分类:
其他好文 时间:
2014-07-09 21:12:58
阅读次数:
221
看下面的英文解释:const char* c_str ( ) const;Get C string equivalentGenerates a null-terminated sequence of characters (c-string) with the same content as the...
分类:
编程语言 时间:
2014-07-09 20:40:50
阅读次数:
345
1、回车换行符chr(10)是换行符,chr(13)是回车,增加换行符select ' update ' || table_name ||' set VALID_STATE =''0A'';'||chr(13)||' commit;'from user_tables删除换行符select id,re...
分类:
数据库 时间:
2014-07-09 20:29:12
阅读次数:
270
Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ...
分类:
其他好文 时间:
2014-07-08 23:12:45
阅读次数:
298
For each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whether the prefix is a periodic string. That is, for each i (2...
分类:
其他好文 时间:
2014-07-08 17:54:12
阅读次数:
297
字典树
看题库上说这是字典树,不过被我水过去了。
题意是说用对应的字典,翻译出火星文。
each line will contain at most 3000 characters.
看到这句话我就安心了。Time Limit: 10000/5000 MS (Java/Others)
果断用map 来水了。还真AC了。3296MS 。本来是想巩固一下字典树的,不过……。
...
分类:
其他好文 时间:
2014-07-08 14:42:44
阅读次数:
173
$sudo easy_install PILWARNING: '' not a valid package name; please use only.-separated package names in setup.py_imaging.c:75:20: fatal error: Python....
分类:
编程语言 时间:
2014-07-06 13:45:43
阅读次数:
256
DescriptionAn accutron shows time with four digits, from 0000 to 2359. Every digit is represented by 3*3 characters, including '|'s, '_'s and blanks. ...
分类:
其他好文 时间:
2014-07-06 13:19:09
阅读次数:
300
最小生成树问题。
用矩阵输入的。
不过很忧伤的是用G++ 提交AC。。C++ 就一直RE。
不过题中说了最多 100 X 100 的矩阵啊。
Logically, they are N lines of N space-separated integers. Physically, they are limited in length to 80 characters, so some l...
分类:
Web程序 时间:
2014-07-06 09:17:00
阅读次数:
312