Minimum Operations to Make All Array Elements EqualSort + prefix sums; binary search per query.Prep with https://www.linkjob.ai/.