Browse Source

docs(weareunique): fixed subject

- fix indentation and grammar
pull/1622/head
jrosendo 2 years ago committed by José Rosendo
parent
commit
8450a159e4
  1. 14
      subjects/weareunique/README.md

14
subjects/weareunique/README.md

@ -1,19 +1,17 @@
## Weareunique
## weareunique
### Instructions
Write a function that takes two strings and returns the number of characters that are not included in both, without doubles.
- If there is no unique charachters return 0.
- If both strings are empty return -1.
- If there is no unique characters return `0`.
- If both strings are empty return `-1`.
### Expected function
```go
func Weareunique(str1 , str2 string) int {
func WeAreUnique(str1 , str2 string) int {
}
```
### Usage
@ -21,7 +19,6 @@ func Weareunique(str1 , str2 string) int {
Here is a possible program to test your function:
```go
package main
import (
@ -29,7 +26,6 @@ import (
)
func main() {
arr := [][]string{
{"foo", "boo"},
{"", ""},
@ -41,7 +37,7 @@ func main() {
{"", "exam"},
}
for _, v := range arr {
fmt.Println(Weareunique(v[0], v[1]))
fmt.Println(WeAreUnique(v[0], v[1]))
}
}
```

Loading…
Cancel
Save