
动态规划
peace in mind
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Sicily 1176. Two Ends
zhua Sicily 1176. Two Ends 题目链接: http://www.sicily.3322.org/sicily/show_problem.php?pid=1176 动态规划。 设 d [ a ][ b ] 表示在区间 [ a, b ] 上,玩家 2 运用贪心策略所导致双方分数的最大差值。 递推公转载 2014-09-25 12:08:02 · 566 阅读 · 0 评论 -
Sicily 1211. 商人的宣传
题目链接在此 受到的启示转载 2014-11-20 21:26:42 · 885 阅读 · 0 评论 -
Sicily 1011.Lenny's Lucky Lotto
题目链接在此 一开始用搜索,发现超时(不要嘲笑我)。 还是把代码po一下好了: #include void dfs(int num, int path, int length, int limit, int& total) { if (path == length) { total++; return; } for (int i = num * 2; i <转载 2014-12-21 19:09:28 · 550 阅读 · 0 评论 -
[LeetCode]Climbing Stairs
今天TX笔试。感觉做的很一般,以前的知识都忘光了。另外得知投PC客户端方向的人数“较多”,心都凉了半截。 不过有一道简答题是LeetCode OJ上做过的。出来跟同学讨论,发现有人在这题上费了不少时间。 于是觉得LeetCode 确实挺有用的,毕竟都是些经典题,针对找工作要笔试面试的码农设计的。 目前LeetCode 上我是把Easy难度的都做完了,平时一边刷题一边会做些笔记。 今天开始,原创 2015-03-29 21:13:46 · 569 阅读 · 0 评论 -
[Leetcode] 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 i is at (i, ai) and (转载 2017-03-01 19:49:55 · 344 阅读 · 0 评论 -
[Leetcode] Wildcard Matching
题目链接在此。 Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any sequence of characters (including the empty sequence). The matchi原创 2017-03-13 16:02:30 · 503 阅读 · 0 评论