Problem 1: Coin Change Link to the problem: https://leetcode.com/problems/coin-change/ class Solution { private int answer(int[] coins, int amount, HashMap<Integer, Integer> map){ if(amount<0) return -1; if(amount==0) return 0; ...

Markdown supported · ⌘↵ to post
No responses yet.