/*
* javaBean代码
*/
package bean;
public class Box {
double length;
double width;
double height;
public Box()
{
length=0;
width=0;
height=0;
}
public double getLength() {
return lengt...
分类:
编程语言 时间:
2014-07-29 21:57:02
阅读次数:
356
问题描述:
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
解题思路:
每遍历出一个单词时,将该单词添加一个空格字符(如果临时字符串为空,即扫描出第一个单词,就不要添加空格字符),然后添加...
分类:
其他好文 时间:
2014-07-29 21:52:52
阅读次数:
239
1/ js区分大小写。HTML不区分,XHTML区分。js中HTML标签和属性必须小写。2、js语句见;可以省略,其会自动分割。 2中特殊情况:return false //return ;false; return continue break单独一行 ...
分类:
编程语言 时间:
2014-07-29 21:45:52
阅读次数:
350
一、property解释 根据文档资料解释:property([fget[, fset[, fdel[, doc]]]])Return a property attribute for new-style classes (classes that derive from object) 使用这.....
分类:
编程语言 时间:
2014-07-29 21:35:22
阅读次数:
286
function isString(variable) { return Object.prototype.toString.call(variable).indexOf('String') != -1;}function isNumeric(variable) { return !is...
分类:
其他好文 时间:
2014-07-29 21:33:52
阅读次数:
245
描述:log(n)代码: 1 class Solution: 2 # @param x, an integer 3 # @return an integer 4 def getVal(self, begin, end, x): 5 if end == begi...
分类:
其他好文 时间:
2014-07-29 21:26:42
阅读次数:
263
1.int rand7() 2.{ 3. return rand()%7+1; 4.} 5. 6.int rand10() 7.{ 8. int x=0; 9. do 10. { 11. x=(rand7()-1)*7+rand7(); 12. } 13. while(x>40); 14. retu...
分类:
其他好文 时间:
2014-07-29 20:53:23
阅读次数:
156
//jquery$("#input_title").keydown(function(e){ e = e||window.event;// Firefox window.event if((e.keyCode || e.which) == 13){ return false; } ...
分类:
编程语言 时间:
2014-07-29 20:38:32
阅读次数:
273
/*数列有序!
Problem Description
有n(n
Input
输入数据包含多个测试实例,每组数据由两行组成,第一行是n和m,第二行是已经有序的n个数的数列。n和m同时为0标示输入数据的结束,本行不做处理。
Output
对于每个测试实例,输出插入新的元素后的数列。
Sample Input
3 3
1 2 4
0 0
Sample Ou...
分类:
其他好文 时间:
2014-07-29 18:06:42
阅读次数:
179