Ad
  • Custom User Avatar
  • Custom User Avatar

    Looking at your profile, I suppose the language is ruby. However, as there are 700+ successful ruby solutions, I'm pretty sure it's not an issue of the kata.

  • Custom User Avatar

    no need to post the same issue twice

  • Custom User Avatar

    Getting

    TypeError: Cannot read property 'length' of undefined
    at validate
    at Object.handleError
    at ContextifyScript.Script.runInThisContext
    at Object.runInThisContext

    where the .length is called on n which is the string taken by function. Works on my local, but seems broken here

  • Custom User Avatar

    Getting

    TypeError: Cannot read property 'length' of undefined
    at validate
    at Object.handleError
    at ContextifyScript.Script.runInThisContext
    at Object.runInThisContext

    When length is called on n, which is the string being taken in. The code works on my local, but seems broken here.

  • Default User Avatar

    Same. Not really sure what that means.

  • Custom User Avatar

    Resolved Spaces Issue and added Description.

  • Default User Avatar

    if you take n=21.5 then your test_even returns true, but this is false!

  • Custom User Avatar

    What is the point of these tests:

    Expected: "More Than One Space Between Words", instead got: "More Than One Space Between Words"
    Expected: " Leading Spaces", instead got: "Leading Spaces"
    Expected: "Trailing Spaces ", instead got: "Trailing Spaces"

    Especially when they aren't specified in the description nor shown in the initial test cases. You only see them when submitting answers. Why would the cases for leading and trailing spaces even require those spaces. The first is just silly; why would anyone put more than one space between words (unless a typo)?

    Just some feedback and a need for clarification. Thanks!

  • Default User Avatar

    For fellow code warriors that run into the same problem: I had this issue too and upon checking some edge cases soon discovered that my code indeed got stuck in a loop for one specific input.

  • Custom User Avatar

    Your proposed solution is too narrow. Imagine you had no idea what the calling functions were. All you know is that there is an input value and an array of functions. Trying to anticipate what each function is and what it does will most certainly not work.

  • Custom User Avatar

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

  • Custom User Avatar

    Awesome, I had my suspicions of that. Thank you!

  • Custom User Avatar

    Ah. A fatal flaw... you may have to write a new kata to fix it, unfortunately. Unless you can get hold of someone on the CW team. They're about. Somewhere... They should be able to discuss the situation and unlock it if necessary.

  • Custom User Avatar

    Don't worry. If others have made the translation, or completed the translated kata, then those people should be okay responding to questions for those languages.

  • Loading more items...