Ad
  • Custom User Avatar

    Yeah it's a "sometimes" case. Obviously this would make the kata significantly more difficult, as per Merriam-Webster there are rules for English that define what that "sometimes" might be. That being said, yeah - just knowing to ignore is probably all we need here :)

  • Custom User Avatar

    Should clarify if "y" is considered a vowel or not. Even better, you could create a more difficult version of this where "y" needs to be treated as a vowel when it is the only vowel in the word/at the end of the word or a syllable/middle of a syllable (per Merriam-Webster) and then otherwise just treated as a consonant.

  • Custom User Avatar

    Bumping this. Random tests should align with the prompt in terms of inputs.

  • Custom User Avatar

    "Given the scrollY integer (always non-negative) and an array of non-negative integers (with at least one element)" - In Ruby, I'm all for a check to make sure the array of non-negative integers actually exists, but the language of the kata strongly indicates that this won't ever be the case and will always have at least one element. Perhaps worth editing the language?

  • Custom User Avatar

    Ruby tests 4 & 5 have the wrong string explanation text:

    Test.assert_equals(twice_as_old(22,1), 20,"Dad is 36 and Son is 7")
    Test.assert_equals(twice_as_old(29,0), 29,"Dad is 36 and Son is 7")
    

    Should read:

    Dad is 42, Son is 21
    Dad is 58, Son is 29