Salesforce MTS Interview Question | DSA | Rejected

Anonymous User
891
Jun 24, 2024

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 (4)