Salesforce MTS Interview Question | DSA | Rejected

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2024-06-24Added By Anonymous
Source: Link

I was asked the following question in my DSA round for MTS role at Salesforce. Can someone help me with the solution and explanation or any reference question on LC or any other place?


Question (paraphrased) -

There are people going on a Trek. They have their preference about the group size they want to be part of - minimum and maximum group size.


Find the maximum group size which can accomodate everyone keeping in mind everyone's preference.

Comments