Activity Selection Problem

This is the link to the code I wrote, one test case fails here, why?

hello @Lakshita2002 i have corrected your code go through it and try to understand the changed .


if you have any doubt you can ask here .
Happy Learning !!

hello @tusharaggarwal272
i do understand the code, it’s just that, how does it strike to know the logic?

hello @Lakshita2002 i have just reframed your logic correctly .you have done everything right .you have just implemented the correct logic but there was some problem in the implementation of the code .

ok, will pay attention to implementation more often, thanks!

if you feel that your doubt is cleared please mark this doubt as resolved and do give the star ratings .
Happy Learning !!

1 Like