From 43a58479cf36fa696353bd382943fdd0c69d4c1a Mon Sep 17 00:00:00 2001 From: lee Date: Wed, 19 Jun 2019 18:01:04 +0100 Subject: [PATCH 1/3] fix unmatch readme from hackaton --- subjects/unmatch.en.md | 12 +++++------- subjects/unmatch.fr.md | 12 +++++------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/subjects/unmatch.en.md b/subjects/unmatch.en.md index b8ce76e76..afbe285c2 100644 --- a/subjects/unmatch.en.md +++ b/subjects/unmatch.en.md @@ -4,8 +4,6 @@ Write a function, Unmatch, that returns the element of the slice (arr) that does not have a correspondent pair. -The function must have the next signature. - ### Expected function ```go @@ -23,12 +21,12 @@ package main import ( "fmt" - student ".." + piscine ".." ) func main() { arr := []int{1, 2, 3, 1, 2, 3, 4} - unmatch := student.Unmatch(arr) + unmatch := piscine.Unmatch(arr) fmt.Println(unmatch) } ``` @@ -36,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/unmatch$ go build -student@ubuntu:~/student/unmatch$ ./unmatch +student@ubuntu:~/piscine/test$ go build +student@ubuntu:~/piscine/test$ ./test 4 -student@ubuntu:~/student/unmatch$ +student@ubuntu:~/piscine/test$ ``` diff --git a/subjects/unmatch.fr.md b/subjects/unmatch.fr.md index b8ce76e76..afbe285c2 100644 --- a/subjects/unmatch.fr.md +++ b/subjects/unmatch.fr.md @@ -4,8 +4,6 @@ Write a function, Unmatch, that returns the element of the slice (arr) that does not have a correspondent pair. -The function must have the next signature. - ### Expected function ```go @@ -23,12 +21,12 @@ package main import ( "fmt" - student ".." + piscine ".." ) func main() { arr := []int{1, 2, 3, 1, 2, 3, 4} - unmatch := student.Unmatch(arr) + unmatch := piscine.Unmatch(arr) fmt.Println(unmatch) } ``` @@ -36,8 +34,8 @@ func main() { And its output : ```console -student@ubuntu:~/student/unmatch$ go build -student@ubuntu:~/student/unmatch$ ./unmatch +student@ubuntu:~/piscine/test$ go build +student@ubuntu:~/piscine/test$ ./test 4 -student@ubuntu:~/student/unmatch$ +student@ubuntu:~/piscine/test$ ``` From ebdc0e3939cb918f3bf6b9e1093ae039ffe33348 Mon Sep 17 00:00:00 2001 From: LEEDASILVA <39002521+LEEDASILVA@users.noreply.github.com> Date: Wed, 19 Jun 2019 18:04:10 +0100 Subject: [PATCH 2/3] Update unmatch.en.md --- subjects/unmatch.en.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subjects/unmatch.en.md b/subjects/unmatch.en.md index afbe285c2..6f3a9c11f 100644 --- a/subjects/unmatch.en.md +++ b/subjects/unmatch.en.md @@ -4,6 +4,8 @@ Write a function, Unmatch, that returns the element of the slice (arr) that does not have a correspondent pair. +- If there no number with a correspondent pair, it shoud return `-1`. + ### Expected function ```go From b897615c127e46462b1ce52b5df553c22ae3d2fd Mon Sep 17 00:00:00 2001 From: augusto-mantilla Date: Mon, 24 Jun 2019 16:49:48 +0100 Subject: [PATCH 3/3] update unmatch --- subjects/unmatch.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/unmatch.en.md b/subjects/unmatch.en.md index 6f3a9c11f..13dd0fe7c 100644 --- a/subjects/unmatch.en.md +++ b/subjects/unmatch.en.md @@ -4,7 +4,7 @@ Write a function, Unmatch, that returns the element of the slice (arr) that does not have a correspondent pair. -- If there no number with a correspondent pair, it shoud return `-1`. +- If all the number have a correspondent pair, it shoud return `-1`. ### Expected function