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.
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
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
This comment is hidden because it contains spoiler information about the solution
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
I will fix this now there was a mistake I will fix this now.
I apologize again
Tried to contact the translator.
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.
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
Should be fixed.
that's unexpected. Yes, c# was driving me crazy. thank you. I will check.
Yes.
You don't straight out deleting numbers that way. Try deleting the numbers a few times and you'll see ;-)