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...
分类:
其他好文 时间:
2014-07-07 15:30:23
阅读次数:
169
Given an array of strings, return all groups of strings that are anagrams.
Note: All inputs will be in lower-case.
回文字符串是指: 两个字符串的字符个数完全相同,这两个字符串是Anagrams。因此Anagrams至少指俩字符串。找出字符集合中的Anagrams组。...
分类:
其他好文 时间:
2014-07-01 08:42:11
阅读次数:
250
Creating a Physical Standby Database
This case is created, operated and followed the steps from oracle online help documentation.
The configuration of the two sites server:
Primary Database:
[roo...
分类:
数据库 时间:
2014-07-01 06:22:46
阅读次数:
415
[java代码库]-简易计算器(第二种) 第二种方案:在程序中不使用if/switch……case等语句,完成计算器功能。 简易计算器 简易计算器
分类:
编程语言 时间:
2014-06-30 22:49:47
阅读次数:
314
- (void)CallOtherPartWithTelNumber:(NSString *)telNumber andType:(NSInteger)type{ switch (type) { case 1: // 可以返...
分类:
其他好文 时间:
2014-06-30 22:09:43
阅读次数:
257
Creating a Physical Standby Database
This case is created, operated and followed the steps from oracle online help documentation.
The configuration of the two sites server:
Primary Database:
[roo...
分类:
数据库 时间:
2014-06-30 19:37:39
阅读次数:
313
卖个萌这是一个弱化版的魔术球问题,本来都不好意思丢上来。。。但是这几天都在看代码没有写东西,还是丢一下凑凑数吧。不要问我正解哪里进,我也没找到,反正百度魔术球问题第一页都是错的。所有代码都跑不出结果。600这么low的数据没有一个所谓AC代码可以跑的过(似乎我代码加了输出方案也过不去。。)。所以后面...
分类:
其他好文 时间:
2014-06-30 12:58:27
阅读次数:
182
var indexOfSorted = function f(arr,n){
//assume : arr has been sorted
var low = 0;
var high = arr.length - 1;
var mid = (low + high) / 2;
while(high - low > 1){
if(n == arr[low]){return low...
分类:
Web程序 时间:
2014-06-30 08:54:10
阅读次数:
978
题目
Given an absolute path for a file (Unix-style), simplify it.
For example,
path = "/home/", => "/home"
path = "/a/./b/../../c/", => "/c"
Corner Cases:
Did you consider the case w...
分类:
其他好文 时间:
2014-06-29 23:19:26
阅读次数:
223
1、强引用
public void handleMessage(Message msg) {
case FAIL:
GoplayException mException = new GoplayException();
setVideoUrlFailReason(mException);
mListener.onFailed(mException);
break;...
分类:
编程语言 时间:
2014-06-29 20:36:11
阅读次数:
299