Ad
  • Custom User Avatar

    Jesse, I had the same problem, until I realized that I was making a palindrome with the numbers 005. If you are adding numbers the to beginning and end of an array or string to get your palindrome, then you need to deal with cases where you have two zeros.

  • Custom User Avatar

    I'm going to run some more tests on my solution then. Thanks for responding, I was so sure that it was correct, so I'm glad I recieved some assurance from someone else that it isn't.

  • Custom User Avatar

    Sorry, but I don't see any difference.
    Moreover, as we can see from issue above, it's not only me =)

  • Custom User Avatar

    First test about 191 vs 373 was just discussed, here products of at least two numbers are considered.
    As for the second, it's unfortunately your solution which is wrong.
    It states clearly: "Expected: 8, instead got: 50", your code is giving 50 as a palindrome.
    So your solution is wrong disregarding how very sure you are.

    I felt into the same trap as well, it's a problem with your code.

    Sometimes katas here are not correct, but this is very rare. Much more often when I see "wrong kata" it turns out, I missed some detail in conditions.

  • Custom User Avatar

    EDIT: My solution is written in Ruby
    I forgot to mention that it passes for every test case when I click "Run Tests" or whatever, and then it passes all but two (the two i mentioned) when I click "Submit".

  • Custom User Avatar

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