The input string has no vowels -> return the original string plus "ay".
The word starts with a vowel(a,e,i,o,u) -> return the original string plus "way".
Both these statements contradict to the third rule, so they should be re-worded to mention return the string in lowercased form ... or change the order of the rules
The instructions don't cover the case of an empty input string well enough.
From the description I would assume that rule number 5 applies (because all other rules don't match and because an empty string has no vowels).
I suggest that the title be changes to 'Variance in the length of words in an array'. This is a little clearer.
The section describing the requirement to limit the result to four decimal places was not clear to me. I suggest that in addition to updating the description that you also add a test case illustrating this requirement.
I am unfamiliar with the term 'aleatory variable' and prefer the term 'random variable'.
it should be clarified that here divisors include the number itself; that is, the traditional perfect numbers are defined by k = 2. An example larger than 1 would help.
I would suggest to test for higher numbers. Now even the most unefficient algorithms easily pass.
Both these statements contradict to the third rule, so they should be re-worded to mention
return the string in lowercased form ...
or change the order of the rulesThis comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Python: Random tests are vulnerable to input modification
My program sometimes passes the tests and sometimes not, but the code is the same. Is this a problem with the test cases?
Python:
General:
The instructions don't cover the case of an empty input string well enough.
From the description I would assume that rule number 5 applies (because all other rules don't match and because an empty string has no vowels).
No random tests.
Link needs to properly inserted.
Wikipedia link states:
and here:
Clearly sum != count, that needs to be fixed.
C# translation added!
The images in the description are broken.
I have several suggestions to improve this Kata.
I suggest that the title be changes to 'Variance in the length of words in an array'. This is a little clearer.
The section describing the requirement to limit the result to four decimal places was not clear to me. I suggest that in addition to updating the description that you also add a test case illustrating this requirement.
I am unfamiliar with the term 'aleatory variable' and prefer the term 'random variable'.
Thanks for your contribution.
Interesting kata! There are the following issues:
Should have example test cases
Loading more items...