plz check the code as test cases are not passing
What i am doing wrong
Hello @mohitsingh could you please explain your logic?
in this you should take the input in the pair format and then sort the pairs according to their ending time and then you can check if the ending time of the current meeting is greater then the starting time of the next meeting then you need to increment the counter.
Here for your reference i am attaching the code:
if you have any doubt you can ask here
Happy Learning!!
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.