Bhaiya,
I am making every index as the starting index and taking all possible length subset and checking whether it is equal to the sum or not. But geeting one WA.
Bhaiya,
I am making every index as the starting index and taking all possible length subset and checking whether it is equal to the sum or not. But geeting one WA.
but on doing this it is giving Yes of
2 2 1 3 test case which should be No
please give the reason
mam,please tell the reason
Is time complexity of my code and this code is same?