Activity Selection Problems

it give wrong when i submitted

your compare function is incomplete you should only return A.second < B.second when A.second != B.second and when it is equal you should put condition on A.first and B.first.

when i compile and run this code on code submission section then it print 0 upto infinite
this error come
how can i remove this error

error occur when submitted the code

hey @khemchandrs it is working fine on my end make sure you are submitting the correct code and the question is correct, if still unable to please contact [email protected]

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.