先说遇到的问题:有个mysql实例跑了两个库,两套程序。其中一个库的表名全为大写,另一个库的表名全为小写。表名为小写的这个库的程序里面写sql语句的时候有用大写的,运行时会提示找不到表。所以需要在my.cnf里添加“lower_case_table_names=1”使mysql忽略大小写。但是加上这..
分类:
数据库 时间:
2014-10-10 15:15:34
阅读次数:
253
前言:最近被线段树+简单递推DP虐的体无完肤!真是弱! A:简单题,照着模拟就可以,题目还特意说不用处理边界 B:二分查找即可,用lower_lound()函数很好用 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include ...
分类:
其他好文 时间:
2014-10-09 16:06:13
阅读次数:
367
SICP 习题 2.8 需要我们完成区间运算的减法,区间运算的加法书中已经有了,代码如下:(define (add-interval x y)
(make-interval (+ (lower-bound x) (lower-bound y))
(+ (upper-bound x) (upper-bound y))))
以上代码很简单,就是计算区间的加法时将两个区间的起点相加,称为新区间...
分类:
其他好文 时间:
2014-10-09 02:37:17
阅读次数:
176
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.For example:Input:["tea","and","ate",...
分类:
其他好文 时间:
2014-10-06 12:02:00
阅读次数:
167
DECLARE @myStr nvarchar(20)set @myStr = 'mrZhang'print LOWER(@myStr) --转换成小写print UPPER(@myStr) --转换成大写
分类:
数据库 时间:
2014-10-05 14:33:18
阅读次数:
410
2213: [Poi2011]DifferenceTime Limit:10 SecMemory Limit:32 MBSubmit:343Solved:108[Submit][Status]DescriptionA word consisting of lower-case letters of ...
分类:
其他好文 时间:
2014-10-02 12:53:12
阅读次数:
540
本文介绍的STL算法中的find、search查找算法。在STL源码中有关算法的函数大部分在本文介绍,包含findand find_if、adjacent_find、search、search_n、lower_bound、 upper_bound、 equal_range、binary_search、find_first_of、find_end相关算法,下面对这些算法的源码进行了详细的剖析,并且适当给出应用例子,增加我们对其理解,方便我们使用这些算法。...
分类:
其他好文 时间:
2014-09-30 21:19:50
阅读次数:
280
概要:c++的stl是个神奇的东西,需要好好学习。技巧及注意:lower_bound是第一个大于等于要查找值upper_bound是第一个大于要查找的值stl中的容器中的比较几乎全都用"的含义实现小根堆。lower_bound也可以重载<,实现找到最后一个大于等于要查找值(二分的lis就是这么实现的...
分类:
其他好文 时间:
2014-09-30 07:18:02
阅读次数:
204
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
public class Solution {
public List anagrams(String[] strs) {
Map map = new Ha...
分类:
其他好文 时间:
2014-09-28 19:10:56
阅读次数:
162
Android icons:Pixel DensitiesAndroid icons require five separate sizes for different screen pixel densities. Icons for lower resolution are created au...
分类:
移动开发 时间:
2014-09-28 17:40:55
阅读次数:
357