select * from c_table t where upper(t.name) like '%F%';--将字段全转成大写select * from c_table t where lower(t.name) like '%f%';--将字段全转成小写select * from c_tabl...
分类:
数据库 时间:
2014-12-03 13:53:43
阅读次数:
208
这题的特点是 引入了个fib数组 其实就是 延迟更新的时候 换了个方式我觉得线段树的题目 不用什么解释 如果一下子没做出来 如果需要使用lazy的话 都是因为 不能很好地定义它的内容lower_bound真心蛮好的 省去了自己手写二分 但也要看情况使用 = = 对了 它还有个兄弟叫做 upper_b...
分类:
其他好文 时间:
2014-12-02 23:53:41
阅读次数:
305
【题目】
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
【解析】
题意:给定一个字符串数组,返回所有是“换位词”的字符串。
所谓“换位词/变位词”就是包含相同字母,但字母顺序可能不同的字符串。比...
分类:
其他好文 时间:
2014-12-02 10:35:23
阅读次数:
129
STL中关于二分查找的函数有三个lower_bound 、upper_bound 、binary_search 。这三个函数都运用于有序区间(当然这也是运用二分查找的前提),下面记录一下这两个函数。ForwardIter lower_bound(ForwardIter first, ForwardI...
分类:
编程语言 时间:
2014-12-01 00:42:59
阅读次数:
257
function [P, L, U] = plu(A)
% The implementation of PLU Factorization
% L is lower triangular and U is upper triangular
% P is permutation matrix
% Author: Zhenlin Du(Johnsondu)
% Email: qlduzhlin@...
分类:
其他好文 时间:
2014-11-30 23:19:21
阅读次数:
297
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 ...
分类:
其他好文 时间:
2014-11-29 08:23:27
阅读次数:
153
Low-ripple-voltage positive-to-negative dc/dc converters find use in many of today's high- frequency and noise-sensitive disk drives, battery-powered ...
分类:
其他好文 时间:
2014-11-28 14:08:43
阅读次数:
251
问题描述:
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
基本思路:
对每个字符串进行排序,然后对排过序的字符串统计出现次数超过1次的。将这些超过1次的字符串的原始串加入结果集
代码:
...
分类:
其他好文 时间:
2014-11-27 22:11:24
阅读次数:
270
MYSQL区分大小写1、linux下mysql安装完后是默认:区分表名的大小写,不区分列名的大小写;2、用root帐号登录后,在/etc/my.cnf 中的[mysqld]后添加添加lower_case_table_names=1,重启MYSQL服务,这时已设置成功:不区分表名的大小写;lower_...
分类:
数据库 时间:
2014-11-27 12:29:20
阅读次数:
151
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.NOTE: the return is the list of all a...
分类:
其他好文 时间:
2014-11-27 06:47:27
阅读次数:
170