+ 3

Please help to modify this

Please can you help me to solve this code https://code.dcoder.tech/challenges/5b28df4362db8b46ab2ac6ee/cashback I am able to find solution for given list but not the minimum list this is my try : https://code.sololearn.com/cZwE7Y2wcz1j/?ref=app Please look what else can I add to it It is just I am not able to solve the small note ☹️😔 Edit: the question asks the minimum cost of all possible lists given by user but I am not able to find the solution for all possible lists what I am able to do is to give the minimum cost for given list please help me to find the way I can modify my program so that it gives solution for all possible list not only one list

23rd Apr 2020, 8:10 AM
Rajb957
Rajb957 - avatar
5 ответов
+ 1
You can input and check I also dont know the parameters. by the way it doesn't work for the initial condition even so please tell me the algorithm on which you made the code but will tried
28th Apr 2020, 3:06 AM
Rajb957
Rajb957 - avatar
+ 1
george No it is not check out the sample input given and sample output given
28th Apr 2020, 8:15 AM
Rajb957
Rajb957 - avatar
0
Could you please told me the imput parameters to check?!
27th Apr 2020, 6:04 PM
george
george - avatar
27th Apr 2020, 8:52 PM
george
george - avatar
0
I think algorithm is sum of (give-take)
28th Apr 2020, 6:51 AM
george
george - avatar