Find the maximum number of riders that can fit in a car given their comfort ranges.
Unlock detailed company stats for this questionUpgrade
There are n riders and 1 car with infinite space. Each rider has a range of other riders they are comfortable with, e.g. the ith rider is comfortable with 3 to 5 other riders. If this condition is not met they do not ride in the car. Find the maximum number of riders that can fit in the car.
Format · Phone screen DSA round.
Community answers
No answers contributed by the community yet.
Related questions
Find the maximum number of passengers in the car at any point.Given a haunted house style setup, find the maximum number of parties that can go.Given a set of numbers, find the number in the set that is closest to the mean of the entire set.Related courses

Course

Course
Course
