Ad
  • Default User Avatar

    Test cases are still wonky. Random test cases had identical successive inputs; first was deemed correct, second was supposedly wrong. See below:

    ======================================================

    Input: 713 31334

    Card Number: { 7 1 3 3 1 3 3 4 }

    Multiplied: { 14 1 6 3 2 3 6 4 }

    Subtracted: { 5 1 6 3 2 3 6 4 }

    Sum: 30

    Valid? True

    ======================================================

    Input: 713 31334

    Card Number: { 7 1 3 3 1 3 3 4 }

    Multiplied: { 14 1 6 3 2 3 6 4 }

    Subtracted: { 5 1 6 3 2 3 6 4 }

    Sum: 30

    Valid? True

  • Default User Avatar

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

  • Default User Avatar

    Hi guys, we need someone pasting his code here, so that Ze-Marcos will be able to check if there is an actual problem or not.

    thx

    EDIT: don't forget the spoiler flag

  • Custom User Avatar

    I will fix this now there was a mistake I will fix this now.

    I apologize again

  • Custom User Avatar

    Tried to contact the translator.

  • Default User Avatar

    I've spent like 2 hours figuring what can be wrong with my code. I was going nuts. I've not spend much time on codewars and i was expecting that all the test cases were right.
    When i gave up, seeing your comment made my day brighter, after all it was not my fault :)

    Edit1: I've tried to use the solution which seems to work. Im curious where is the secret. Gonna have to check oneday. Now my eyes are to tired.

  • Default User Avatar

    I thought I was screwing something up so I started writing everything out to the console. I was so confused on why 35 % 10 == 0 was supposed to return true. Thanks for clarifying

  • Custom User Avatar

    Should be fixed.

  • Default User Avatar

    that's unexpected. Yes, c# was driving me crazy. thank you. I will check.

  • Custom User Avatar

    Yes.

    You don't straight out deleting numbers that way. Try deleting the numbers a few times and you'll see ;-)