1815. Maximum Number of Groups Getting Fresh Donuts
Description
**Input:** batchSize = 3, groups = [1,2,3,4,5,6]
**Output:** 4
**Explanation:** You can arrange the groups as [6,2,4,5,1,3]. Then the 1st, 2nd, 4th, and 6th groups will be happy.**Input:** batchSize = 4, groups = [1,3,2,5,2,2,1,6]
**Output:** 4ac
Last updated