haoel / leetcode

LeetCode Problems' Solutions
17.58k stars 4.91k forks source link

1: Two Sum: Go: signature is too broad #255

Open vitaly-zdanevich opened 2 years ago

vitaly-zdanevich commented 2 years ago

Actual:

func twoSum(nums []int, target int) []int

Expected:

func twoSum(nums []int, target int) [2]int