Skip to content

Commit 8f254db

Browse files
authored
Update pair_sum_unsorted.go
Return `nil` instead of `return []int{}`
1 parent 13c190d commit 8f254db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/Hash Maps and Sets/pair_sum_unsorted.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ func pairSumUnsorted(nums []int, target int) []int {
77
}
88
hashmap[x] = i
99
}
10-
return []int{}
10+
return nil
1111
}

0 commit comments

Comments
 (0)