I was attempting RENT problem from SPOJ, this problem is same as weighted activity selection problem. My solution is not getting accepted and I am getting the wrong answer. I am not able to figure out what is wrong with my code. Anyone please look at it and let me no what is the problem.
Thanks in advance