findunique added

This commit is contained in:
2022-09-16 14:48:36 +04:00
parent 3683bdf7c2
commit f48d7209c7
4 changed files with 26 additions and 3 deletions

View File

@@ -5,10 +5,10 @@ import "fmt"
func main() {
var test_nums []int
test_nums = append(test_nums, 2, 3, 5, 6, 9, 1)
fmt.Print(twoSum(test_nums, 10))
fmt.Print(TwoSum(test_nums, 10))
}
func twoSum(nums []int, target int) []int {
func TwoSum(nums []int, target int) []int {
var result []int