Driver Code
$ coin = array ( 8 , 5 , 3 , 10 , 2 , 1 , 15 , 25 ) ; $ n = sizeof ( $ coin ) ; preprocess ( $ coin , $ n ) ; $ k = 3 ; echo minCost ( $ coin , $ n , $ k ) . " STRNEWLINE " ; $ k = 7 ; echo minCost ( $ coin , $ n , $ k ) . " STRNEWLINE " ; ? >