随笔分类 -  dp

摘要:Description Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible fro 阅读全文
posted @ 2019-03-18 00:32 bloglxc 阅读(166) 评论(0) 推荐(0)
摘要:You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee 阅读全文
posted @ 2019-03-08 00:15 bloglxc 阅读(152) 评论(0) 推荐(0)
摘要:A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p 阅读全文
posted @ 2019-03-06 13:47 bloglxc 阅读(152) 评论(0) 推荐(0)
摘要:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping yo 阅读全文
posted @ 2019-03-06 13:38 bloglxc 阅读(109) 评论(0) 推荐(0)