Browse Source

Merge pull request #196 from 01-edu/fixUnmatch

fix unmatch readme from hackaton
pull/215/head
augusto-mantilla 5 years ago committed by GitHub
parent
commit
168aceba66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      subjects/unmatch.en.md
  2. 12
      subjects/unmatch.fr.md

12
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.
The function must have the next signature.
- If all the number have a correspondent pair, it shoud return `-1`.
### Expected function
@ -23,12 +23,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 +36,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$
```

12
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$
```

Loading…
Cancel
Save