Browse Source

feat: add vowels-index

fixDevirged
zainabdnaya 2 years ago
parent
commit
4df40dfcf0
  1. 27
      subjects/vowels-index/README.md

27
subjects/vowels-index/README.md

@ -13,12 +13,27 @@ func VowelIdx(str string) []int {
``` ```
### Usage ### Usage
```go
package main
import "fmt"
func main() {
res := VowelIdx("hello Iyan")
for _, i := range res {
fmt.Println(i)
}
}
```
And its output :
```console ```console
$ go run . "hello Iyan"
$2 $ go run .
$5 $ 1
$7 $ 4
$8 $ 6
$9 $ 8
``` ```

Loading…
Cancel
Save