aboutsummaryrefslogtreecommitdiff
path: root/max_num_events_attended.c
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2025-07-06 21:14:11 -0600
committerJack Sangdahl <[email protected]>2025-07-06 21:14:11 -0600
commita46ef4d0be2f3eb1384b222b5a2bf5091d9c3be3 (patch)
treea68751be34d3fee01c42bc14e1af14e4df3c62b3 /max_num_events_attended.c
parente8a5a000382b7236e558e3e871d0dec79a955f2d (diff)
downloadleetcode-a46ef4d0be2f3eb1384b222b5a2bf5091d9c3be3.tar.gz
leetcode-a46ef4d0be2f3eb1384b222b5a2bf5091d9c3be3.zip
1353. maximum number of events that can be attended
Diffstat (limited to 'max_num_events_attended.c')
-rw-r--r--max_num_events_attended.c9
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.
+ */