Description
We are given a rooted tree of n vertices. The vertices are to be labeled with numbers
1, 2,..., n so that each label is unique and the heap condition holds, i.e. the label of any verte...
分类:
其他好文 时间:
2014-08-22 17:53:39
阅读次数:
264
Container With Most Water
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line...
分类:
移动开发 时间:
2014-08-22 16:17:59
阅读次数:
208
$('.xcarcoin_tb').each(function(i){ var aika='爱卡币'; if(data[i]==0){ }else{ $(this).text(aika+data[i]); } })$.each(data.log, function(i,item) { str +='...
分类:
Web程序 时间:
2014-08-22 12:54:28
阅读次数:
247
//多SQL中导出的触发器语句:DROP TRIGGER IF EXISTS `t_trig`;DELIMITER //CREATE TRIGGER `t_trig` BEFORE INSERT ON `t_goods` FOR EACH ROW beginset NEW.add_date = cu...
分类:
数据库 时间:
2014-08-22 12:38:56
阅读次数:
388
//jquery数组遍历 var arr = [1,2,3]; $.each(arr, function(i,val){ console.log(i); console.log(val); }); 0,1 1,2 2,3下面这个还...
分类:
Web程序 时间:
2014-08-22 12:37:06
阅读次数:
177
All the things present from the universe is frequently modifying each of the time regardless of irrespective of whether it has occurred in past times ...
分类:
其他好文 时间:
2014-08-22 12:36:36
阅读次数:
219
Evaluate Reverse Polish NotationEvaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may ...
分类:
其他好文 时间:
2014-08-22 12:18:26
阅读次数:
135
Problem Description
Dragon is watching competitions on TV. Every competition is held between two competitors, and surely Dragon's favorite. After each competition he will give a score of either 0 or ...
分类:
其他好文 时间:
2014-08-21 22:53:15
阅读次数:
245
leetcode的题目Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You h...
分类:
其他好文 时间:
2014-08-21 22:29:54
阅读次数:
279
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below....
分类:
其他好文 时间:
2014-08-21 21:11:24
阅读次数:
213