arunsathiya/leetcode

Unordered result should be accepted for `1. Two Sum` problem

arunsathiya opened this issue · 0 comments

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := twoSum(tt.nums, tt.target); !reflect.DeepEqual(got, tt.want) {
t.Errorf("twoSum() = %v, want %v", got, tt.want)
}
})
}

We look for a specific order at the moment, but this should be fixed.