- 博客(6)
- 收藏
- 关注
原创 动态规划DP算法实现全排列
/* * 全排列 * 无相同元素 * 1. 取第1个元素插入空字串, 1种情况 * 2. 取第2个元素插入长度为1的字串, 1*2 = 2种情况, 例如 'b'插入"a",可以在'a'前, 'a'后 * 3. 取第3个元素插入长度为2的字串, 2*3 = 6种情况, 例如 'c'插入 "ab",可以在'a'前, 'b'前, 'b'后 * ... * n. 取第n个元素插入长度n-1的字串,...
2018-06-28 21:10:03
2339
原创 Git Memo
1.- 生成patch filegit format-patch -1- 应用patchgit apply [file]( 打linux patchpatch -p1 < diff.patch)2.- rebase切换versiongit branch -r // 列可用git rebase [branch name]3.-上传代码git push [remote server] HE...
2018-06-26 23:22:01
273
原创 PKU-1753
http://poj.org/problem?id=1753Flip GameTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 50937 Accepted: 21529DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces pl...
2018-06-26 23:10:22
253
原创 PKU-1942
先来一道水题开篇http://poj.org/problem?id=1942Paths on a GridTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 26997 Accepted: 6784DescriptionImagine you are attending your math lesson at school. Once...
2018-06-26 22:29:38
168
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人