Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2014-10-24 12:28:03
阅读次数:
211
今天又舔着脸开始LeetCode的征程了,本来是写在CSDN的,无奈遇上他家博客老是在升级中。。。题目:Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the...
分类:
其他好文 时间:
2014-10-24 00:11:43
阅读次数:
151
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
class Solution {
public:
std::vector anagrams(std::vector &strs) {
...
分类:
其他好文 时间:
2014-10-23 09:33:28
阅读次数:
173
取值:disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian...
分类:
其他好文 时间:
2014-10-20 18:58:28
阅读次数:
284
修改文件为/etc/mysql/my.cnf[client]default-character-set = utf8 (ps:client的设置没变)[mysqld]lower_case_table_names = 1 (不区分大小写)character_set_server = utf8 (ps:...
分类:
数据库 时间:
2014-10-18 11:08:57
阅读次数:
222
先是看了一下讲解 ,选取 了二分法 ,由于数列都是正数的特殊情况,每一个sum【i】+s 对应一个最小的连续序列,最后只要减掉sum【i】就可以,lower_bound刚好可以用来查找最小的sum【i】+i,算法复杂度(nlogn),另外还有一种尺取法,复杂度只有n,大意是设置t,s两个节点,不断加减来更新res的最小值
下面是ac过的法一代码**************************...
分类:
其他好文 时间:
2014-10-15 21:17:18
阅读次数:
182
[leetcode]Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string....
分类:
其他好文 时间:
2014-10-15 11:06:50
阅读次数:
205
Linux下mysql安装完后是默认:区分表名的大小写,不区分列名的大小写; root登录,修改/etc/my.cnf,在末尾添加一行:lower_case_table_names=1 lower_case_table_names参数:?0为敏感,1为不敏感。 MySQL在L...
分类:
数据库 时间:
2014-10-13 20:09:47
阅读次数:
292
一般在网上会说明 修改my.ini文件的 lower_case_table_names = 0参照: http://www.linuxidc.com/Linux/2013-04/82719.htm.但是在软件的安装目录下找不到该文件. 安装目录一般为 C:\Program Files\MySQL必须...
分类:
数据库 时间:
2014-10-13 18:02:31
阅读次数:
244
avalon的过滤器是参考自angular与rivets。它也被称做管道文本过滤器,它的处理对象只能是文本(字符串),它只能用在文本绑定中,并且只能是双花括号形式。下面是各大家的过滤器比较:rivetsjsangularjs{{ "lower cap string" | uppercase }}{{...
分类:
Web程序 时间:
2014-10-11 13:05:25
阅读次数:
307