Attend Talks
https://www.hackerrank.com/contests/codenection-2021-closed-category/challenges/attend-talks/
Question
It’s Barcamp season! Every year MMU IT Society organizes a Barcamp event where people can talk about whatever they wish to talk about. There are N talks scheduled in this year’s Barcamp, and Kyle wants to attend as many talks as possible. You’re given the start and end time of each talk, help Kyle find out what is the maximum number of talks he can attend on this year’s Barcamp.
Input Format
Input consists of an integer N and next N lines contain start and end time of ith talk.
Constraints
Output Format
Output a single integer, the maximum number of talks that Kyle can attend.
Sample Inputs:
Last updated