
贪婪算法
黑夜中坚持
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
管道网络
Description Every house in the colony has at most one pipe going into it and at most one pipe going out of it. Tanks and taps are to be installed in a manner such that every house with one outgoing pi...原创 2019-12-04 20:14:25 · 427 阅读 · 0 评论 -
格子里的整数
Description Given a square grid of size n, each cell of which contains integer cost which represents a cost to traverse through that cell, we need to find a path from top left cell to bottom right cel...原创 2019-12-04 19:10:51 · 299 阅读 · 0 评论 -
路上的球
Description There are two parallel roads, each containing N and M buckets, respectively. Each bucket may contain some balls. The buckets on both roads are kept in such a way that they are sorted accor...原创 2019-12-04 19:09:23 · 189 阅读 · 0 评论 -
管道网络
Description Every house in the colony has at most one pipe going into it and at most one pipe going out of it. Tanks and taps are to be installed in a manner such that every house with one outgoing pi...原创 2019-11-28 15:26:51 · 336 阅读 · 0 评论 -
时间分隔(车站到站)
Description Given arrival and departure times of all trains that reach a railway station. Your task is to find the minimum number of platforms required for the railway station so that no train waits. ...原创 2019-11-28 15:25:01 · 366 阅读 · 0 评论 -
时间与收益
Description Given a set of n jobs where each job i has a deadline and profit associated to it. Each job takes 1 unit of time to complete and only one job can be scheduled at a time. We earn the profit...原创 2019-11-28 14:51:51 · 329 阅读 · 0 评论 -
硬币最小数量
Description Given the list of coins of distinct denominations and total amount of money. Output the minimum number of coins required to make up that amount. Output -1 if that money cannot be made up u...原创 2019-11-28 14:46:07 · 299 阅读 · 0 评论