diff options
Diffstat (limited to 'max_num_events_attended.c')
-rw-r--r-- | max_num_events_attended.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/max_num_events_attended.c b/max_num_events_attended.c new file mode 100644 index 0000000..9a6daef --- /dev/null +++ b/max_num_events_attended.c @@ -0,0 +1,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. + */ |