Ad
  • Custom User Avatar

    Changed the testing code now, can you check again?

  • Default User Avatar

    Same issue; tried both of these approaches (round & float).

  • Custom User Avatar

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

  • Custom User Avatar

    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.

  • Custom User Avatar

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

  • Custom User Avatar

    even i'm getting same output and i think test cases are wrong

  • Custom User Avatar

    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

  • Custom User Avatar

    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

  • Default User Avatar
  • Custom User Avatar

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

  • Custom User Avatar

    Added some more examples to the description. Is it clear enough now?

  • Custom User Avatar

    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.

  • Custom User Avatar

    code entry isn't working very well for me. When i type/delete/move around the code are it acts very strangely