Duplicate Zeros Solutions in GoNumber 1089Difficulty EasyAcceptance 52.9%Link LeetCodeOther languages C++SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func duplicateZeros(arr []int) { for i := 0; i < len(arr); i++ { if arr[i] == 0 && i+1 < len(arr) { arr = append(arr[:i+1], arr[i:len(arr)-1]...) i++ } }}package leetcode func duplicateZeros(arr []int) { for i := 0; i < len(arr); i++ { if arr[i] == 0 && i+1 < len(arr) { arr = append(arr[:i+1], arr[i:len(arr)-1]...) i++ } } }