|
|
@ -2,12 +2,10 @@ |
|
|
|
|
|
|
|
|
|
|
|
### Instructions |
|
|
|
### Instructions |
|
|
|
|
|
|
|
|
|
|
|
Write a function that takes two strings and returns the amount of characters that are not included in both without doubles. |
|
|
|
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 there is no unique charachters return 0. |
|
|
|
- If both strings are empty or one of them return -1. |
|
|
|
- If both strings are empty or one of them return -1. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Expected function |
|
|
|
### Expected function |
|
|
|
|
|
|
|
|
|
|
|
```go |
|
|
|
```go |
|
|
@ -23,6 +21,7 @@ func Weareunique(str1 , str2 string) int { |
|
|
|
Here is a possible program to test your function : |
|
|
|
Here is a possible program to test your function : |
|
|
|
|
|
|
|
|
|
|
|
```go |
|
|
|
```go |
|
|
|
|
|
|
|
|
|
|
|
package main |
|
|
|
package main |
|
|
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
import ( |
|
|
|