Ad
  • Custom User Avatar

    I don't know if "string rotation" is a common concept but I haven't heard of it. Due to lack of explanation the solution involves more guesswork then it should in my opnion.

  • Custom User Avatar

    Agree with all the above. For now there is too much guesswork involved in solving this kata.

  • Custom User Avatar

    Hard to tell only based on Passed/Failed report.
    The tests and final submission often use different tests, with the final submission ones being more extensive.
    So you most likely have a problem with you algorithm that is not apparent in the simpler tests.
    (Just noticed your comment is from 8 months ago, but I'm posting the reply anyway lol)

  • Custom User Avatar

    Oh yeah, if it's "assertNotEquals" hehe.
    Yes, seems ok to me now.

  • Custom User Avatar

    Looks good to me!

  • Custom User Avatar

    In "Your Test Cases":
    Test.assertEquals(longestPalindrome("zyabyz", 0, "Are you sure that is a palindrome?")
    should be:
    Test.assertEquals(longestPalindrome("zyabyz"), 1, "Are you sure that is a palindrome?")
    There is a parenthesis missing and the expected value is wrong, should be 1 rather then 0;

    More tests including some random ones for the final submission might be good.

  • Custom User Avatar

    Thanks! Yes, I had a while loop with a semicolon after the condition lol.
    For some reason it wasn't a problem when running tests...

  • Custom User Avatar

    I am getting "Process was terminated. It took longer than 6000ms to complete"...
    My solution which worked for the simple testcases relies on arrays. Is that the problem?

  • Custom User Avatar
  • Custom User Avatar

    Thanks. Yes, makes perfect sense. I should have thought a bit harder :)

  • Custom User Avatar

    Interesting kata. I was able to get the translation going and pass all the tests except for:

    Wires are only mapped once
    Should not have accepted a second definition for a wire end - Expected: true, instead got: false
    Should not have accepted a second definition for a wire end - Expected: true, instead got: false

    I really can't figure out what that's supposed to mean. Any pointers? I'm using ruby by the way.

  • Custom User Avatar

    The problem is not limited to a 3d sphere, that's why it's called Hyper Sphere ;)

  • Custom User Avatar

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