Code showing wrong answer

@vanshika1205 you shouldn’t compare start time of every activity with end time of its previous activity instead compare start time of current activity with end time of previously chosen activity. i have updated your code a little take a look at this (https://ide.codingblocks.com/s/201735).

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.