1.用ROOT登录,修改/etc/my.cnf2.在[mysqld]下加入一行:lower_case_table_names=10:区分大小写,1:不区分大小写3.重新启动数据库即可
分类:
数据库 时间:
2015-01-19 12:47:24
阅读次数:
188
The problem:Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the l...
分类:
其他好文 时间:
2015-01-16 01:07:30
阅读次数:
250
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/42744709
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
思路:
(1)如果不知道anagrams的意思,很容易将题意理解错了。最开始...
分类:
其他好文 时间:
2015-01-15 20:27:31
阅读次数:
259
Problem Description Now you are back,and have a task to do: Given you a string s consist of lower-case English letters only,denote f(s) as the nu...
分类:
其他好文 时间:
2015-01-12 23:44:24
阅读次数:
272
FreeMarker还提供了一些内建函数来转换输出,可以在任何变量后紧跟?,?后紧跟内建函数,就可以通过内建函数来轮换输出变量.下面是常用的内建的字符串函数: html:对字符串进行HTML编码 cap_first:使字符串第一个字母大写 lower_case:将字符串转换成小写 upper_cas...
分类:
其他好文 时间:
2015-01-12 17:22:44
阅读次数:
215
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is...
分类:
其他好文 时间:
2015-01-12 13:03:03
阅读次数:
136
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
先将原字符串数组中的字符串单独排序,如:bac-->abc,然后对整个的数组排序,此时数组中相邻的字符串如果相等,则原数组中的两字符串必满足条件,将其加入到结...
分类:
其他好文 时间:
2015-01-12 11:37:18
阅读次数:
200
名称:sort
位置:/usr/bin/sort
权限:所有用户
用法: sort [OPTION]... [FILE]...
sort [OPTION]... --files0-from=F
选项:
-b --ignore-leading-blanks 忽略最前面的空格
-f --ignore-case fold lower case to upper case characters 忽略字母的大小写
...
分类:
系统相关 时间:
2015-01-09 09:20:23
阅读次数:
269
array_change_key_case( $arr ,CASE_LOWER || CASE_UPPER) 返回键名全为大写或者是小写的数组 array_rand($arr , num) 从数组中随机取出一个或多个单元 shuffle(&$arr) ? 将数组打乱 array_chunk($arr , $size ,...
分类:
编程语言 时间:
2015-01-06 18:22:21
阅读次数:
217
Given a string which contains only letters. Sort it by lower case first and upper case second.NoteIt's not necessary to keep the original order of low...
分类:
其他好文 时间:
2015-01-01 00:05:48
阅读次数:
313