• + 1 comment

    this is just the coin change problem with varying n (amount)....my solution was O(m*m*n) but it is ok as the values of m and n are small