packagechangevarchangeTests=[]struct{descriptionstringinputintexpectedmap[int]int}{{"no change",0,map[int]int{25:0,10:0,5:0,1:0},},{"uses one coin",5,map[int]int{25:0,10:0,5:1,1:0},},{"uses two coins",27,map[int]int{25:1,10:0,5:0,1:2},},{"uses many coin",39,map[int]int{25:1,10:1,5:0,1:4},},}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Go - with tests:
change.go:
change_test.go
change_test_cases.go