摘要: #include class Solution { unordered_map dp_map; vector vec; int func(int target) { if (dp_map.find(target) != dp_map.end()) { return dp_map[target]; ... 阅读全文
posted @ 2016-08-01 15:22 blcblc 阅读(224) 评论(0) 推荐(0)
摘要: // 参考了:https://discuss.leetcode.com/topic/51893/two-solutions-one-is-dp-the-other-is-greedy-8-lines // 另有:https://discuss.leetcode.com/topic/51946/very-simple-java-solution-with-detail-explanation c... 阅读全文
posted @ 2016-08-01 14:06 blcblc 阅读(432) 评论(0) 推荐(0)