Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Changed the testing code now, can you check again?
Same issue; tried both of these approaches (round & float).
It's more that describing a letter as being a vowel or consonant is fundamentally misleading. Those are types of sounds, and letters are not sounds - they're lines on paper or symbols on a screen. One letter can represent several sounds (as is the case with English 'y'), and sometimes multiple letters represent one sound - e.g. the word "hitch" has two consonants; they are written 'h' and 'tch'.
I was taught the same but I learnt something new, the letter Y can be regarded as both a vowel and a consonant. So I opted for vowel in this kata. See wikipedia and http://www.oxforddictionaries.com/words/is-the-letter-y-a-vowel-or-a-consonant for detail.
This comment is hidden because it contains spoiler information about the solution
even i'm getting same output and i think test cases are wrong
don't know how about you, but for me even round(n,2) didn't work...
despite the solution using round(n,2) passed obviously
Am I missing something - should this have passed?
Testing for for gimme([-64, -74, -69])
Must work for random arrays too - Expected: 1, instead got: 2
Testing for for gimme([-69, -60, -63])
Must work for random arrays too - Expected: 1, instead got: 2
Testing for for gimme([-78, -53, -59])
Must work for random arrays too - Expected: 1, instead got: 2
Testing for for gimme([-74, -87, -73])
Must work for random arrays too - Expected: 1, instead got: 0
Don't work for 2.675.
The additional examples definitely make it clearer, yes! I would maybe consider adding some sort of explanation as a comment next to the examples, but if you think additional explanation will make the solution too obvious, then the changes you have made are sufficient. After all, figuring out what the examples mean is basically 100% of what makes this kata challenging...
Added some more examples to the description. Is it clear enough now?
I found the last test--"For decimal numbers, return true only if the number is equal to its integer part and the integer part is odd."--quite confusing. Maybe give some very specific examples: "7.3" would be false because it is not exactly equal to its integer part ("7"), whereas "7.0" would be true because it is exactly equal to its integer part ("7"). This sort of clarification would have saved me from vastly overthinking this kata.
code entry isn't working very well for me. When i type/delete/move around the code are it acts very strangely