From 82b6dd14439d01309c9bbe9b22d691f0ff705546 Mon Sep 17 00:00:00 2001 From: zainabdnaya Date: Thu, 9 Jun 2022 17:53:02 +0100 Subject: [PATCH] feat: add vowels-index --- subjects/vowels-index/README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 subjects/vowels-index/README.md diff --git a/subjects/vowels-index/README.md b/subjects/vowels-index/README.md new file mode 100644 index 00000000..83a71a32 --- /dev/null +++ b/subjects/vowels-index/README.md @@ -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 +``` + \ No newline at end of file