Need help with MARCHA1

Giving me a segfault and I can’t seem to figure out why.

modify code where if(l>r&&sum!=x)return 0;
and return the or of the last two called recusive function(if any subset returns you 1 result).
you can find modified solution here
Happy coding :slight_smile:

1 Like

@ram_24 I did that actually without coming across your answer first, but it worked, no clue what caused it but thanks a lot!

1 Like