Ad
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    good one..

  • Custom User Avatar

    Description updated.

  • Custom User Avatar

    Description updated.

  • Custom User Avatar

    Description updated, along with python tests.

  • Custom User Avatar

    Description needs a little update: define vowels, use quotes, etc. (as mentioned in previous comments)

  • Default User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Not an issue.

  • Custom User Avatar

    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
  • Custom User Avatar

    Fixed, thanks!

  • Custom User Avatar

    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 :)

  • Custom User Avatar

    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:

    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?

  • Custom User Avatar

    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:

    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?

  • Custom User Avatar

    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...