i am a bit confused in the input of the problem. can u explain the input i.e what is the weight here and its value
Minimum money needed problem
@mikkyimran
hello Imran,
please share the screenshot of the problem with sample input and output. due to some issue im not able to see input and output format
@mikkyimran
hello Imran,
In this question ,
the first line will contain n,w where n is number of friends (no use in this problem) and w is total weight of organes cody want to purchase.
In second line u are given w numbers . where value at ith position is cost of i kg orange.
now u need to find out minimum cost to purchase w kg oranges.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
