what is the error in code
giving segmentation fault ???
what is the error in code
giving segmentation fault ???
@himanshu_aswal
made each subsets via recursion and as soon as we find a subset i calculated the sum
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.
he didn’t told whats the fault in my code althought it seems correct
in ur base case put return outside for (to avoid infinite recusion).
also intitalise p=0 inside while(t–) loop
check now->