LeetCode 200. Number of Islands(小岛)

https://leetcode.com/problems/number-of-islands/ Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island...

2016-05-04 04:23:07

阅读数:889

评论数:0

LeetCode 309. Best Time to Buy and Sell Stock with Cooldown(股票交易)

原题网址:https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown/ Say you have an array for which the ith element is the price of a...

2016-04-20 13:34:58

阅读数:529

评论数:0

LeetCode 276. Paint Fence(篱笆涂色)

原题网址:https://leetcode.com/problems/paint-fence/ There is a fence with n posts, each post can be painted with one of the k colors. You have to pain...

2016-04-14 00:48:41

阅读数:881

评论数:0

LeetCode 265. Paint House II(房子涂色)

原题网址:https://leetcode.com/problems/paint-house-ii/ There are a row of n houses, each house can be painted with one of the k colors. The cost of pai...

2016-04-10 16:22:00

阅读数:737

评论数:0

LeetCode 256. Paint House(房子涂色)

原题网址:https://leetcode.com/problems/paint-house/ There are a row of n houses, each house can be painted with one of the three colors: red, blue or g...

2016-04-09 05:05:47

阅读数:844

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭