Compare commits

...

16 Commits

  1. 41
      subjects/vowels-index/README.md

41
subjects/vowels-index/README.md

@ -0,0 +1,41 @@
## vowels-index
### Instructions
Write a function that takes one argument of type string and returns an array of integers containing the index of the vowels in the string.
- vowels: [a, e, i, o, u]
### Expected function
```go
func VowelsIndex(str string) []int {
}
```
### Usage
Here is a possible program to test your function
```go
package main
import "fmt"
func main() {
res := VowelsIndex("hello Iyan")
for _, i := range res {
fmt.Println(i)
}
}
```
And its output :
```console
$ go run .
1
4
6
8
```
Loading…
Cancel
Save