题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-....
分类:
编程语言 时间:
2014-08-04 13:58:57
阅读次数:
285
从阮老师博客的一道测试题说起: 代码段一:var name = "The Window"; var object = { name : "My Object", getNameFunc : function(){ return function(){ retur...
分类:
编程语言 时间:
2014-08-04 13:43:47
阅读次数:
255
题目:Given an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm....
分类:
编程语言 时间:
2014-08-04 13:34:47
阅读次数:
373
Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc...
分类:
其他好文 时间:
2014-08-04 13:31:07
阅读次数:
250
interface Fruit { void eat(); } class Apple implements Fruit { public void eat() { System.out.println("I am eating apple."); } } class Orange implemen...
分类:
编程语言 时间:
2014-08-04 13:28:37
阅读次数:
229
public class Animal{ private string _name;//动物名称 public string Name { get { return _name; } set { _name = value; } } publ...
分类:
其他好文 时间:
2014-08-04 10:44:37
阅读次数:
194
js 中跳出循环用break,结束本次循环用continue,jquery 中each循环 跳出用return true,或者return false,下面的代码的本意是输入组名查找组id,如果没有找到返回'nofind',在实际执行过程中,当找到组id的时候,执行了 return n.PLM_ID...
分类:
Web程序 时间:
2014-08-04 10:28:46
阅读次数:
221
public void quicksort(int[] array, int low, int high){ int i = low; int j = high; if(i>j) return; int pivot = i...
分类:
其他好文 时间:
2014-08-04 08:17:56
阅读次数:
204
题目:Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".题解:二进制加法都是从最低位(从右加到左)。所以对两个字符串要从最后一位开始加,....
分类:
编程语言 时间:
2014-08-04 06:13:36
阅读次数:
291
function createXmlHttp() { if (typeof XMLHttpRequest != "undefined") { return new XMLHttpRequest(); } else if (window.ActiveXOb...
分类:
Web程序 时间:
2014-08-04 01:50:46
阅读次数:
425