β(she can buy 1 from either of the two)β - This line can be found in the example section of the question in query 2. My request is please remove this line as this means that while calculating the items that can be bought we can combine 2 or more items cost together to get the value which if allowed actually the all the queries like 3 and 4 will be possible. Eg. query 3 we have 500rs, for this we can combine item 3(400)+item 1(100) to get the value which will make the count of items that can be bought as 4 thus making the answer to the query as yes. Similarly others can also be proved.
Error in the example provided
hi @abhisheksingh80511,
Iβll send the request to team.
anything more in this question like do u have doubt?
Thanks Talha.
No I donβt have any more doubts
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.