forked from root/public
![diyanazizo13@gmail.com](/git/assets/img/avatar_default.png)
1 changed files with 24 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||||
|
# VowlsIndex |
||||||
|
|
||||||
|
### Instructions |
||||||
|
|
||||||
|
- Write a function that takes one argument of type string and returns an array of intergers containing the index of the vowels in the string. |
||||||
|
- vowels : [a,i ,e ,u o] |
||||||
|
|
||||||
|
### Expected function |
||||||
|
|
||||||
|
```go |
||||||
|
func VowelIdx(str string) []int { |
||||||
|
} |
||||||
|
``` |
||||||
|
### Usage |
||||||
|
|
||||||
|
```console |
||||||
|
$ go run . "hello Iyan" |
||||||
|
$2 |
||||||
|
$5 |
||||||
|
$7 |
||||||
|
$8 |
||||||
|
$9 |
||||||
|
``` |
||||||
|
|
Loading…
Reference in new issue