aboutsummaryrefslogtreecommitdiff
path: root/max_num_events_attended.c
blob: 9a6daefcb5d13a8680aee6d5ebdfa6aa46370c8f (plain)
1
2
3
4
5
6
7
8
9
#include "leetcode.h"

/*
 * you are given an array of 'events' where 'events[i] = [startday_i,
 * endday_i]'. every event 'i' starts at 'startday_i' and ends at 'endday_i'.
 * you can attend an event 'i' at any day 'd' where 'starttime_i <= d <=
 * endtime_i'. you can only attend one event at any time 'd'. return the maximum
 * number of events you can attend.
 */