1. Return minimum number of coins/notes change 2. Form a string given a precedence array.
Sigiloso
Here is my solution for the question. int totalCoins = 0; int divident = 0; if(n >= 25){ divident = n/25; totalCoins+= divident; n -= (divident * 25); } if(n >= 10){ divident = n/10; totalCoins += divident; n -= (divident*10); } if(n >= 5){ divident = n/5; totalCoins += divident; n -= (divident*5); } if(n>0) totalCoins += n; return totalCoins;