https://leetcode.com/problems/length-of-last-word/Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the leng...
分类:
其他好文 时间:
2015-05-06 01:14:51
阅读次数:
152
字符函数Lower(char): 将字符串转化为小写的格式Upper(char): 将字符串转化为大写的格式Length(char): 返回字符串的长度Substr(char,m,n): 取字符串的子串,m表示截取起始位置,n表示截取的长度--将所有员工的名字按小写的方式显示select lower...
分类:
数据库 时间:
2015-05-04 23:59:20
阅读次数:
287
题目:poj 1952 BUY LOW, BUY LOWER
题意:给出一个序列,先求最长单调递减子序列,然后求在子序列最长的情况下,不同的长度都为最长的的子序列的个数。(比如3,2,1和3,2,1属于相同,只能算一个)分析:首先用一个dp【i】表示到当前i点的最长子序列的长度
用dp2【i】表示最长为dp【i】的子序列的个数
然后dp【i】 = max(dp【j】)+1 (1<=j/****...
分类:
其他好文 时间:
2015-05-03 16:03:44
阅读次数:
146
题意:把一个矩形划分成n部分,再给出一堆点,求每个部分内落入了多少点sol attempt1:暴力注意每个polygon中的点要按笔画的顺序排列好。还有就是有的点可能落在了upper or lower edge,稍微处理一下(ans==1 or 2都算)TLE了 -_-|| 1 #include.....
分类:
其他好文 时间:
2015-05-01 21:09:11
阅读次数:
114
首先是万恶的PROBLEM D。。终于在从爷光环的照耀下A了,代价则是无奈的35发错..自己二分一直比较搞。。这点我是清楚的,拿了从爷的代码,说实话看了很久,没整懂.自己也尝试过各种狗血办法,一个lower_bound,一个upper_bound来搞,还是过不了...最后终于理解了。。其实就是每次二...
分类:
其他好文 时间:
2015-05-01 07:04:17
阅读次数:
126
环境规划:node1:192.168.1.250node2:192.168.1.251vip:192.168.1.201数据库:mysql-5.6.231.各节点的网络配置node1节点:[root@node1~]#hostnamenode1[root@node1~]#ipaddr1:lo:<LOOPBACK,UP,LOWER_UP>mtu16436qdiscnoqueuestateUNKNOWNlink/loopback00:00:00:00:00:00brd0..
分类:
数据库 时间:
2015-04-30 20:29:47
阅读次数:
188
#include#includeint Sum1(int n){ int count = 0; //记录1的个数 int factor = 1; //标记,逐位计算1的个数 int Lower = 0; int Curr = 0; int Higher = 0; while ( n/factor !...
分类:
其他好文 时间:
2015-04-30 15:32:17
阅读次数:
115
BUY LOW, BUY LOWER
Time Limit: 1000MS
Memory Limit: 30000K
Description
The advice to "buy low" is half the formula to success in the bovine stock market.To be con...
分类:
其他好文 时间:
2015-04-30 12:35:24
阅读次数:
132
遇到WARNING:Could not lower the asynch I/O limit to 170 for SQL direct I/O. It is set to -1...
分类:
数据库 时间:
2015-04-29 21:49:36
阅读次数:
483
Givenastringsconsistsofupper/lower-casealphabetsandemptyspacecharacters‘‘,returnthelengthoflastwordinthestring.Ifthelastworddoesnotexist,return0.Note:Awordisdefinedasacharactersequenceconsistsofnon-spacecharactersonly.Forexample,Givens="HelloWorld",return5...
分类:
其他好文 时间:
2015-04-29 17:27:09
阅读次数:
117