Find All Numbers Disappeared in an Array Solutions in GoNumber 448Difficulty EasyAcceptance 55.9%Link LeetCodeOther languages —SolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func findDisappearedNumbers(nums []int) []int { res := []int{} for _, v := range nums { if v < 0 { v = -v } if nums[v-1] > 0 { nums[v-1] = -nums[v-1] } } for i, v := range nums { if v > 0 { res = append(res, i+1) } } return res}package leetcode func findDisappearedNumbers(nums []int) []int { res := []int{} for _, v := range nums { if v < 0 { v = -v } if nums[v-1] > 0 { nums[v-1] = -nums[v-1] } } for i, v := range nums { if v > 0 { res = append(res, i+1) } } return res }