I personally think the issue with my code is that it’s starting the base ( j ) from the 1st meeting ending time, but I don’t know how to initialize j in a way such that I will be able to yield maximum meetings.
Unable to solve activitySelection
hi @rahulmutreja76 please provide the correct link, this link is opening an empty IDE, not your code
hi @rahulmutreja76 you need to sort the activities first as they can be given in any random order. Sort them according to their ending times.
[https://sapphireengine.com/@/w7ihd8]
(https://sapphireengine.com/@/w7ihd8)
Now I in-fact sorted them as well still only 1 test case passed.
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.