Assuming English, 'y' can be regarded as a vowel in certain cases. If there are no other regular vowels 'aeiou' the 'y' acts as a vowel (so it should be moved to the end in theory according to the description). Some examples:
'myth' -> 'mthy'
'slyly' -> 'sllyy'
It might be good enough to check if there are other regular vowels present and if not, move the ys to the end. You would need to verify that the string input is actually a word though and not a garbled string and that might make this way more complicated.
Just a couple of small things in the description that could be better:
the word "vowel" in the first line should be plural
where you give the examples, adding an arrow ( '=>' ) in between the input and output would help clarity
the word "string" in the "Note:" at the end should be plural, and the term "small letters" should probably read "lower-case", although I see no reason why the function shouldn't work for both lower-case and upper-case letters
All input for test cases can be re-arranged into a palindrome
But there, it is not the case.
At least (it is not sufficient...) I think, from the description, that input and output arrays must have the same length as in "Your test cases".
Maybe Python tests must be verified too?
All input for test cases can be re-arranged into a palindrome
But there, it is not the case.
At least (it is not sufficient...) I think, from the description, that input and output arrays must have the same length as in "Your test cases".
Maybe Python tests must be verified too?
Ranked, upvoted, translated, but please not that you should implement random test cases, plus, imho, also tests where the pivot is also present in the wing of the palindrome.
This comment is hidden because it contains spoiler information about the solution
good one..
Description updated.
Description updated.
Description updated, along with python tests.
Description needs a little update: define vowels, use quotes, etc. (as mentioned in previous comments)
Assuming English, 'y' can be regarded as a vowel in certain cases. If there are no other regular vowels 'aeiou' the 'y' acts as a vowel (so it should be moved to the end in theory according to the description). Some examples:
'myth' -> 'mthy'
'slyly' -> 'sllyy'
It might be good enough to check if there are other regular vowels present and if not, move the ys to the end. You would need to verify that the string input is actually a word though and not a garbled string and that might make this way more complicated.
This comment is hidden because it contains spoiler information about the solution
Not an issue.
Just a couple of small things in the description that could be better:
Fixed, thanks!
Thanks senpai: a silly mistake on my part, now I fixed the code to generate the random inputs and it should all work fine. Let me know otherwise :)
I post here too because I think that Giacomo is the translator and he needs to know.
Ruby.
Something seems wrong in test cases:
Testing for [14, 19, 14, 14, 13, 14, 14, 13]
Expected: [14, 14, 13, 14, 13, 14, 14]
The description says:
But there, it is not the case.
At least (it is not sufficient...) I think, from the description, that input and output arrays must have the same length as in "Your test cases".
Maybe Python tests must be verified too?
Ruby.
Something seems wrong in test cases:
The description says:
But there, it is not the case.
At least (it is not sufficient...) I think, from the description, that input and output arrays must have the same length as in "Your test cases".
Maybe Python tests must be verified too?
Ranked, upvoted, translated, but please not that you should implement random test cases, plus, imho, also tests where the pivot is also present in the wing of the palindrome.
Loading more items...