原题:UVA 1172 http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3613动态规划问题。定义: dp[i] = 右岸前i个村庄(m岸)能够与左岸(n岸)...
分类:
其他好文 时间:
2014-07-07 17:13:26
阅读次数:
260
Problem Description:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.Solution: 递归。 1 public List>...
分类:
其他好文 时间:
2014-07-07 16:59:12
阅读次数:
169
题目
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down...
分类:
其他好文 时间:
2014-06-30 11:10:34
阅读次数:
211
比较简单实现.style.display控制层隐藏或显示属性.
function show(){
document.getElementById("div").style.display="";
//alert(document.getElementById("div").style.display)
}
function hidden(){
document.ge...
分类:
其他好文 时间:
2014-06-30 07:25:54
阅读次数:
190
atitit.团队建设o6o fix
#----- 无限放大梦想 2
要有自己的方向...主动添加自己的东东.. 3
有几个tech site,能晓得最新的的知识.. 3
有问题多交流, 3
失败的造成都是时机不对,不是成员无能 3
是beos不明,不是无才...
3
过去的失败不能说明一个人无能.. 3
使用商量的口吻说:你能不能帮俄... 3
all big ti...
分类:
其他好文 时间:
2014-06-30 06:30:34
阅读次数:
563
【题目】
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.
Return all such possible sentences.
For example, given
s = "catsanddog",
dict = ["cat", "cats", "and", "sand", "dog...
分类:
其他好文 时间:
2014-06-30 00:51:41
阅读次数:
295
题目
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
Given an integer n, return all distinct solutions to the n-que...
分类:
其他好文 时间:
2014-06-30 00:34:18
阅读次数:
188
21、git tag tagname:创建标签
22、git show tagname:查看标签信息。注意:标签不是按时间顺序列出,而是按字母排序的。
23、git tag -a tagname -m tagdesc:创建带说明的标签
24、git tag -d tagname:删除指定标签
25、git push origin tagname:推送某个标签到远程仓库
26、git push origin --tags:一次性推送全部尚未推送到远程的本地标签
27、git push origin...
分类:
其他好文 时间:
2014-06-29 23:40:56
阅读次数:
360
1. start IDLE
“Python 2.5”→“IDLE(Python GUI)”
2. open your source file window
From python shell, select file->open...
3. show debug control
From python shell, select Debug->Debuger
4....
分类:
编程语言 时间:
2014-06-29 22:47:26
阅读次数:
356
题目
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T = "ABC"
Minimum wi...