pls tell what iam doing wrong and how do i rectify it ??
Easy subset sum wrong output
Hello @Ajaypandey,
This is a very common mistake that you have done in your code.
The output format of your code doesn’t match with the output format of the question:
Your are required to print the output of each testcase on separate lines.
In your case, it is printing on the same line.
Solution:
Change line after every output.
Hope, this would help.
Give a like, if you are satisfied.
1 Like
tysm bhaiya . this happened for the third time now
In that case, i would suggest:
If you are stuck, then always try to run the code on the different testcases you can think of, before asking us.
Debugging code helps a lot in building basic concepts.
Please, mark this doubt as resolved if you don’t have anything else to ask about this doubt.
1 Like