Two Sum Solutions in GoNumber 1Difficulty EasyAcceptance 45.6%Link LeetCodeOther languages C++, Python, JavaSolutionsGo solution by halfrost/LeetCode-Gopackage leetcode func twoSum(nums []int, target int) []int { m := make(map[int]int) for k, v := range nums { if idx, ok := m[target-v]; ok { return []int{idx, k} } m[v] = k } return nil}package leetcode func twoSum(nums []int, target int) []int { m := make(map[int]int) for k, v := range nums { if idx, ok := m[target-v]; ok { return []int{idx, k} } m[v] = k } return nil }