Maximum Number of Events That Can Be Attended at Instacart
Medium38.9% acceptance
This problem has 62.5% frequency at Instacart.
Problem Description
You are given an array of `events` where `events[i] = [startDayi, endDayi]`. Every event `i` starts at `startDayi` and ends at `endDayi`. You can attend an event `i` at any day `d` where `startDayi <= d <= endDayi`. You can only attend one event at any time `d`. Return _the maximum number of event...
Read full problem and hintsTopics
Also asked at 14 companies
More Instacart Questions
Check if Every Row and Column Contains All NumbersEasyFind First and Last Position of Element in Sorted ArrayMediumSquares of a Sorted ArrayEasyAverage Waiting TimeMediumWildcard MatchingHard
View all Instacart questions