Ad
  • Custom User Avatar

    That's not the input of the test your code fails. Not a kata issue.

  • Default User Avatar

    JS: I have a problem with '6F43E8'. The test doesn't work right at attempt stage, please fix the test.
    I throw error of false - it doensn't pass.

  • Default User Avatar

    Fixed it, Thanks

  • Custom User Avatar

    The reason why your code fails apparently only on one test is because tests are very weak. This code should fail on several cases. It is clear according to the description that this is not a valid ticket, isn't it? You should try to print how you actually split the string...

  • Custom User Avatar

    Damn dude, thanks for the tip man. that was so sneaky

  • Custom User Avatar

    Print the input with this: console.log(`"${ticket}"`);

  • Custom User Avatar

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

  • Custom User Avatar

    Yea my bad dude misunderstood the question will fix it.

  • Custom User Avatar

    Translated into C++, if you want to approve it.

  • Custom User Avatar

    Your code being wrong is not a kata issue, 37.169.194.192.121.48.180.138 is newer than 37.169.194.192.121.4.94.170

  • Custom User Avatar

    Should be fixed in Rust.

  • Custom User Avatar

    Not Sure if some JS tests are working or not as i have checked the failed test cases should have passed.

    Comparing after splitting the array at "." 138 is less than 170 so should return false but the test says : 'expected false to equal true' Let me know if its a issue from my side or the test itself. Thankyou

    loop 37 37
    loop 169 169
    loop 194 194
    loop 192 192
    loop 121 121
    loop 48 4
    loop 180 155
    loop 164 94
    loop 138 170