Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 671 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 671 Bytes

go-coin-change

This is a sample program to implement the change management for a given set of denominations and amount.

About

This program is mainly developed to test the coin change implementation. The program takes a set of denominations and an amount for which the change is to be made. The function coinChange will return the number of minCoins required to make the change and the optimal denominations which can be used for making the respective change.

How to run the program

The go-coin-change program can be executed using go run main.go.