Subtract the Product and Sum of Digits of an Integer Solutions in GoNumber 1281Difficulty EasyAcceptance 85.2%Link LeetCodeOther languages —SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func subtractProductAndSum(n int) int { sum, product := 0, 1 for ; n > 0; n /= 10 { sum += n % 10 product *= n % 10 } return product - sum}package leetcode func subtractProductAndSum(n int) int { sum, product := 0, 1 for ; n > 0; n /= 10 { sum += n % 10 product *= n % 10 } return product - sum }