Question: Advanced Algorithm : what is the function of this exercise with whatever programming language c++ etc.., not python 3 Complexity (approx. 6 pts) Let's consider

Advanced Algorithm : what is the function of this exercise with whatever programming language c++ etc.., not python
3 Complexity (approx. 6 pts) Let's consider a wallet containing several coins (from 100 to 2). We want a function that tests wether one can pay for a certain amount using the coins. For instance, assuming the wallet contains 100, 200, 500, 50c, 16, 18, 26, one can pay 1.706 (tising 1 + 50c + 20e) but one cannot pay 1.40. The function can be designed as follows the wallet is defined as an array whose elements represent the coins, all integers for the sake of simplicity)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
