I just used basic dynamic Problem approach. In my opinion this the variation of
MINIMUM SUBSET DIFF. with added condition for negative values…
My code is running fine in sublime text but is giving SIGSEGV on codechef.
What is wrong in my code…
Please help.
I made the changes and now i am not getting segmentation fault. Thank you very much…
I also want to ask you how you debugged my code…
Is there any way I can do it myself like you did??