第一次写回溯。。发生了很多错误(虽然回溯应该是很简单的算法了,就是剪剪枝而已)
可能也有思考不全的因素,一开始老是想多减点枝,结果减多了。。虽然第一次的时间确实很可观。~
有一点可能很uva上题目的描述不一样,uva上说a single upper case character in the the range `A' to `Z'), followed by a `:'
节点只有一个的...
分类:
其他好文 时间:
2015-03-12 19:20:25
阅读次数:
144
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2015-03-12 18:42:30
阅读次数:
120
Length of Last Word问题:Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the strin...
分类:
其他好文 时间:
2015-03-11 21:11:05
阅读次数:
124
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2015-03-06 14:08:58
阅读次数:
109
研究了一下openstack中的本地化;主要使用gettext模块;其中本地化包括对一般字符串的本地化和log的本地化;(1)_localedir = os.environ.get('essential'.upper() + '_LOCALEDIR')_t = gettext.translation...
分类:
其他好文 时间:
2015-03-04 20:41:10
阅读次数:
143
转载注明出处:http://blog.csdn.net/non_cease/article/details/7989521正确区分不同的查找算法count,find,binary_search,lower_bound,upper_bound,equal_range本文是对Effective STL第...
分类:
其他好文 时间:
2015-03-04 18:29:37
阅读次数:
105
如果一个表中有很多的字段,而我们想要知道这个表中的字段个数,如果使用如下方式一个一个数,则显得很麻烦Oracle中可以使用如下sql来查询字段(列)个数select count(*) from user_tab_columns where table_name=upper('表名')或者select max(column_id) from user_tab_columns where table_...
分类:
数据库 时间:
2015-03-03 22:08:58
阅读次数:
211
1题目Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word ...
分类:
其他好文 时间:
2015-03-02 22:08:09
阅读次数:
115
STL包含四种不同的二分查找算法,binary_search lower_bound upper_bound equal_range.他们的作用域是已经排序好的的数组。
★binary_search试图在已排序的[first, last)中寻找元素value。如果找到它会返回true,否则返回false,它不返回查找位置。
★iterator
lower_boun...
分类:
其他好文 时间:
2015-03-01 12:01:11
阅读次数:
178
前提:必须有DBA权限,有权限查询表空间使用情况--查看表空间使用情况SELECT UPPER(F.TABLESPACE_NAME) "表空间名", D.TOT_GROOTTE_MB "表空间大小(M)", D.TOT_GROOTTE_MB - F.TOTAL_BYT...
分类:
数据库 时间:
2015-02-27 20:07:11
阅读次数:
243