码迷,mamicode.com
首页 >  
搜索关键字:upper    ( 2194个结果
【LeetCode】- Length of Last Word(最后一个单词的长度)
[ 问题: ] 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. [...
分类:其他好文   时间:2014-07-22 23:01:35    阅读次数:331
剑指offer (8) 旋转数组
1. 查找和排序查找:顺序查找、二分查找、二叉搜索树、哈希表顺序查找:T(n) = O(n) std::find二分查找:T(n) = O(log n) std::binary_search std::lower_bound std::upper_bound哈希表: T(n) = O...
分类:其他好文   时间:2014-06-11 07:45:31    阅读次数:250
正则表达式之基础篇
今天看了鸟哥的linux私房菜,关于正则表达式:简单做笔记如下: [:upper:] 大写字母 A-Z [:lower:] 小写字母 a-z [:digit:]  数字 0-9 [:alpha:] 字母   A-Z a-z [:alnum:] 字母和数字 A-Z a-z 0-9 首先介绍几个字符: ^ 表示行首  (^在方括号[ ]内表示不包含,在[ ]外表示行首!!!)...
分类:其他好文   时间:2014-06-02 22:29:06    阅读次数:238
oracle常用函数
一、字符函数字符函数是oracle中最常用的函数,我们来看看有哪些字符函数:lower(char):将字符串转化为小写的格式。upper(char):将字符串转化为大写的格式。length(char):返回字符串的长度。substr(char, m, n):截取字符串的子串,n代表取n个字符的意思,...
分类:数据库   时间:2014-05-29 21:54:37    阅读次数:428
LeetCode: Length of Last Word [057]
【题目】 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 defined as a character sequence consists of non-space ...
分类:其他好文   时间:2014-05-25 07:39:05    阅读次数:256
hi3531的pcie atu资源重映射
1. 设置ATU 区域号寄存器为需要配置的地址转换区编号。 2. 设置ATU Region Lower Base Address Register 和ATU Region Upper Base Address Register。(在此区域内的目标地址将由区域号寄存器所在的ATU 转换) 3. 设置ATU Region Limit Address Register。 4. 设置ATU Reg...
分类:其他好文   时间:2014-05-21 13:52:28    阅读次数:247
LightOJ 1088 Points in Segments 二分查找
LightOJ 1088 Points in Segments 二分查找 这个不是二分答案的那种题了,是比较正常的那种集合区间中的那种元素查找的二分题目了。题意很简单,给n个有序的数,这些数分布在一个坐标轴上。给q次查找,询问在区间[x, y](这里的符号和代码的保持一致)中有多少个数据。 解法就是自己写一个二分函数upper_bound和lower_bound,然后直接计算区间即可。...
分类:其他好文   时间:2014-05-21 10:54:31    阅读次数:239
sql语法值ORACLE简介
字符函数 dual 虚表,它是一行一列,没有任何数据,常常用于测试。它是oracle特有的用于做函数测试的。 1.upper(参数) 将目标字符串转换成大写形式 select * from emp where ename=upper(‘&name’); 2.lower(参数)将目标字符串以小写的形式显示 3.length(参数)获取当前字符串的长度 4.substr(mu(目标字符串,截取的起始位置,截取的长度) select substr('hello',1,2) from dual ;--...
分类:数据库   时间:2014-05-09 01:09:32    阅读次数:451
python中的字符串处理
1.字符串转换 s.lower()   转为小写 s.upper()  转为大写 s.swapcase()   大写转为小写,小写转为大写 s.capitalize()  首字母大写 转换为int类型  string.atoi(s)   或者int(s) 转换为float类型  string.atof(s)  或者float(s) 转换为long类型   string.atol(s)...
分类:编程语言   时间:2014-05-07 04:09:36    阅读次数:433
C++标准库之 Lower_Bound, upper_Bound
upper_bound lower_bound...
分类:编程语言   时间:2014-05-03 21:28:03    阅读次数:425
2194条   上一页 1 ... 217 218 219 220 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!