what is wrong in my code? please somebody help me.
according to me my logic is correct but it is not showing any result.
what is wrong in my code? please somebody help me.
according to me my logic is correct but it is not showing any result.
hi @pushkar24sharma corrected code: https://ide.codingblocks.com/s/303733
You need to change the below mentioned part like this. If sum is less then target, then you need to increase your sum, so you need to move to the right side in the sorted array.
