1.泛型和类型边界1.1.上限(upper bounds)我们先看一个简单的实例,用于判断两个变量中较大的值,其中两个变量的类型均为Int型package com.tv189.advanced/** * Created by molyeo on 2015/8/12. */class PairInt(...
分类:
其他好文 时间:
2015-08-12 18:48:48
阅读次数:
128
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-08-11 15:58:20
阅读次数:
140
NSString*test=@"HelloWorld";//小写NSString*lower=[testlowercaseString];//大写NSString*upper=[loweruppercaseString];NSLog(@"test:%@",lower);NSLog(@"test:%@...
分类:
移动开发 时间:
2015-08-11 13:55:55
阅读次数:
141
hdu5338 ZZX and Permutations非原创,来自多校题解不是自己写的,惭愧ing……留着以后自己参考……lower_bound {1,2,4,5} 询问 2,返回的是 2 ,询问3 返回的是 4 是大于等于元素的值upper_bound {1,2,4,5} 询问2,返回4,询问3...
分类:
其他好文 时间:
2015-08-07 22:17:05
阅读次数:
180
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 ...
分类:
其他好文 时间:
2015-08-07 17:57:08
阅读次数:
109
https://leetcode.com/problems/length-of-last-word/题目:Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the l...
分类:
其他好文 时间:
2015-08-06 22:07:02
阅读次数:
109
转载自http://www.cnblogs.com/askjacklin/archive/2012/06/04/2534571.html--查询表空间使用情况 SELECT UPPER(F.TABLESPACE_NAME) "表空间名", D.TOT_GROOTTE_MB "表空间大小(M)",.....
分类:
其他好文 时间:
2015-08-06 13:03:49
阅读次数:
183
Length of Last WordGiven a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.I...
分类:
编程语言 时间:
2015-08-06 01:46:07
阅读次数:
317
基础知识 二分非递归写法: int binary_search(const int a[], const int size, const int val) { int lower = 0; int upper = size-1; /* invariant: if a[i]==val for any ...
分类:
编程语言 时间:
2015-08-04 20:54:22
阅读次数:
178