Linkage
https://leetcode.com/problems/coin-change/description/
https://leetcode.com/problems/unique-paths/description/
https://leetcode.com/problems/word-break/description/
Code
1 | class Solution { |
Pay attention to the non-result case, once we found the amount i is unavailable, we should mark it with MAX, otherwise the min function will be executed wrongly.
1 | class Solution { |
1 | class Solution { |