diff --git a/go/twosum/twosum.go b/go/twosum/twosum.go index aed9b49..7fba5a0 100644 --- a/go/twosum/twosum.go +++ b/go/twosum/twosum.go @@ -2,12 +2,5 @@ package twosum func TwoSum(nums []int, target int) []int { out := []int{} - for i := 0; i < len(nums)-1; i++ { - if nums[i]+nums[i+1] == target { - out = append(out, i) - out = append(out, i+1) - break - } - } return out }