Minimum Moves to Equal Array Elements Solutions in GoNumber 453Difficulty EasyAcceptance 50.2%Link LeetCodeOther languages —SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode import "math" func minMoves(nums []int) int { sum, min, l := 0, math.MaxInt32, len(nums) for _, v := range nums { sum += v if min > v { min = v } } return sum - min*l}package leetcode import "math" func minMoves(nums []int) int { sum, min, l := 0, math.MaxInt32, len(nums) for _, v := range nums { sum += v if min > v { min = v } } return sum - min*l }