Buying Sweets Problem Code: BUYING2

I am getting wrong answer but the sample test cases got except please help me where I am going wrong

when you are asking a question pls mention problem link
also I have mentioned a hint

Hint The reason your code is not working is because you are not checking the value of each banknote
Solution My Solution

Pls Like :slightly_smiling_face:

1 Like