Daily challenge for 2025-12-15
349. Minimum Operations to Equal Elements
Given an array of integers nums, return the minimum number of operations required to make all elements equal, where each operation increments n - 1 elements by 1.
Example:Input: nums = [1,2,3]Output: 3
Explanation: [1,2,3] → [2,3,3] → [3,4,3] → [4,4,4]. Three operations.
Run this challenge interactively in Python or JavaScript when the app loads.