6 kyu
Vowel-consonant lexicon
307 of 614KenKamau
Loading description...
Strings
Arrays
Algorithms
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
"If we alternate the vowels and consonants in the string "have", we get the following list, arranged alphabetically: ['ahev', 'aveh', 'ehav', 'evah', 'vahe', 'veha']." How about 'have' and 'heva'?)
OK now.
👍
I am sorry, but I could not uderstand this kata properly. What do you mean by "alternate the vowels and consonants" could you or anyone else please explain this a bit?
vowel - consonant - vowel - consonant ... consonant - vowel - consonant - vowel ...
Thanks @Chrono79 for your quick reply but I am still confused/😕
What is it that confuses you? The instructions seem clear to me.
From Vowel to Consonant From Consonant to Vowel
Cute Kata.
👍🏼
Such a lovely kata! It's a shame that current rate is 89%. Surprisingly I came up with a relatively good solution on my own :)
Thx. I hope you ranked it!
shouldnt this be ordered alphabetically
when i run the test it assumes "e" as if it is the 2nd letter on the alphabet i got this: Expected: 'edorur', instead got: 'deroru' Expected: 'ebefegikilimomonupupuqusuw', instead got: 'befegekilimimonopupuqusuwu'
and some more like that
The description says something about there being equal number of vowels and consonants...
This comment has been hidden.
acidity should return acidity as described in the example tests... Or else it should return failed if you conisder y a consonant in this case... What to do with y is an issue, doesn't fall neatly into either category.
Not really. You have to alternate vowels and consonants. Look again...between the two, only
caditiy
does that.y
is not a vowel in this Kata.The y is a vowel in acidity, but a consonant in caditiy... Otherwise you would have a double consonant 'ty' or a double vowel 'iy' if y behaved as one or the other; it is contextual. This is what I was referring to.
Please read the Kata description again. It clearly states what will be considered a vowel.
Got it thanks. See now that avoiding duplicates only matters for output, not input; for instance aaabbbb would be valid input? ---> bababab... That was the point that was a little unclear to me, my mistake!
Approved
Thanks!
Once the question below is fixed someone can resolve this issue and approve the kata.
(Leaving an issue to prevent others accidentally approving it)
Updated the description.
'bededehekililimipiviwo' should equal 'ebededehikililimipivow'
? But they arearranged alphabetically
right ?Right.
That doesn't answer the key question.
When vowels and consonants are equal in number, put vowels first.
This should be put in the description.
Done!