分治、回溯角度思考:假设硬币为[10, 9, 1],兑换总额为18,那么问题可以转换为f(18) = min(f(18 - 10), f(18 - 9), f(18 - 1)) 直到硬币兑换成功 傻递归,leetcode 超时 @param coins @param amount @return
(int[] coins, int amount)
source not stored for this graph (policy: none)
nothing calls this directly
no outgoing calls
no test coverage detected