常用函数测试:
#! -*- coding:utf-8 -*-
import string
s = 'Yes! This is a string'
print '原字符串:' + s
print '小写:' + s.lower()
print '大写:' + s.upper()
print '大小写转换:' + s.swapcase()
print '首字母大写:' + s.capitalize...
分类:
其他好文 时间:
2015-04-02 16:28:39
阅读次数:
239
lower_bound(begin, end, target)用来查找一个已排序的序列中[begin, end)第一个大于等于target的元素。数组A如下:value: 1, 2, 2, 3, 4, 5, 5, 6, 7index: 0, 1, 2, 3, 4, 5, 6, 7, 8这样的一个序列...
分类:
编程语言 时间:
2015-04-02 14:44:58
阅读次数:
175
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.http://www.cnblogs.com/AnnieKim/archi...
分类:
其他好文 时间:
2015-04-02 06:37:46
阅读次数:
113
problem:
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...
分类:
其他好文 时间:
2015-04-01 17:37:54
阅读次数:
204
原来Linux下的MySQL默认是区分表名大小写的,通过如下设置,可以让MySQL不区分表名大小写:1、用root登录,修改 /etc/my.cnf;2、在[mysqld]节点下,加入一行: lower_case_table_names=13、重启MySQL即可;其中 lower_case_tabl...
分类:
数据库 时间:
2015-04-01 16:46:33
阅读次数:
195
题目:
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: ...
分类:
其他好文 时间:
2015-04-01 11:31:38
阅读次数:
138
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 def...
分类:
其他好文 时间:
2015-04-01 11:23:37
阅读次数:
112
//---------------------------15/03/31----------------------------
//lower_bound(要求有序)
templateclass ForwardIterator,
class T>
inline ForwardIterator lower_bound(ForwardIterator fir...
分类:
编程语言 时间:
2015-04-01 09:36:36
阅读次数:
251
Long time no blog.I worked on Interspeech 2015, but failed. The classification accuracy is not as good as excepted. I will change the lower BLSTM laye...
分类:
其他好文 时间:
2015-04-01 00:20:29
阅读次数:
125
problem:
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
Hide Tags
Hash Table String
题意:给定多余两组的字符串,找出其中所有的满足以下条...
分类:
其他好文 时间:
2015-03-30 18:48:07
阅读次数:
103