Activity problem

What is the logic behind that problem

Hello @Alfred
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:

Coding Blocks IDE

Coding Blocks IDE

Coding Blocks Online IDE | Run and check your code

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