Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:
其他好文 时间:
2014-09-06 21:18:33
阅读次数:
263
All 6 sides of a cube are to becoated with paint. Each side is is coated uniformly with one color. When a selectionof n different colors of paint is available, how many different cubes can youmake?
...
分类:
其他好文 时间:
2014-09-06 20:03:53
阅读次数:
254
Description
Problem B
Cubes
You are given 12 rods of equal length. Each of them is colored in certain color. Your task is to determine in how many different ways one can construct a cube...
分类:
其他好文 时间:
2014-09-06 17:27:53
阅读次数:
253
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-09-06 17:20:33
阅读次数:
229
Description
There is an interesting calculator. It has 3 rows of buttons.
Row 1: button 0, 1, 2, 3, ..., 9. Pressing each button appends that digit to the end of the display.
Row 2: button +0,...
分类:
其他好文 时间:
2014-09-06 12:31:03
阅读次数:
338
Going Home
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 18094
Accepted: 9225
Description
On a grid map there are n little men and n houses. In each unit...
分类:
其他好文 时间:
2014-09-06 12:29:53
阅读次数:
249
//数组功能扩展
Array.prototype.each=function(fn){
fn=fn||Function.K;
vara=[];
varargs=Array.prototype.slice.call(arguments,1);
for(vari=0;i<this.length;i++){
varres=fn.apply(this,[this[i],i].concat(args));
if(res!=null)a.push(res);
}
returna;
};
//数组是..
分类:
其他好文 时间:
2014-09-05 18:31:42
阅读次数:
260
在做一个页面的时候,网页中由许多块相同的地方 ,例如页面中会有多个地方用到TAB 效果,在使用each()遍历以后 不一定会正常显示,这是因为写的html静态页面中只有当前板块中有这个的类,若是用JS动态改变当前的类名的话,文件不一定会正常加载,因此应当使用通用的类名 ,而不应该使用当前的类名。例如...
分类:
Web程序 时间:
2014-09-05 18:04:21
阅读次数:
166
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.Each numb...
分类:
其他好文 时间:
2014-09-05 17:35:41
阅读次数:
227
Sum Root to Leaf Numbers
Total Accepted: 20237 Total
Submissions: 67979My Submissions
Given a binary tree containing digits from 0-9 only,
each root-to-leaf path could represent a numbe...
分类:
其他好文 时间:
2014-09-05 16:12:01
阅读次数:
200