Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Looks like I did saw all this "...there must be a space between the two strings"
Theres an error on the task description because str1 + str2 returns a string without space between them
I forgot that, even doing it just to assign it to another var, it was mutating it :/
Thanks
This comment is hidden because it contains spoiler information about the solution
No, I'm not mutating the input
What do you mean with 'mutating the input'?
It's changing the initial value?
If it's that, I'm not mutating.
Note: I'm doing with javascript.
My function it's always expecting that the value sent it's an valid array
Hi,
No and I think there's an issue with the tests when we try to submit, because all of them are saying that the expected result is zero.
On the sample tests the code, are working fine.
For what I saw now, on the tests that runs on the submission, it's passing an invalid array
Ex:
Testing for points(['1:0','2:0','3:0','4:0','2:1','3:1','4:1','3:2','4:2','4:3'])
Test Passed: Value == 30
Testing for games = [1:4,1:3,2:0,0:2,4:3,4:1,1:1,3:4,1:3,1:3] =
It should work for random inputs too - Expected: 0, instead got: 10
I'm doing that.
The code that I'm trying to submit has passed the initial tests, but on the others is failing and like I said it's very strange because it says that is always expecting zero as result
https://www.codewars.com/kata/total-amount-of-points/train/javascript/5c917b4aaccd820016f40d8f
Thanks
What do you mean with this?
I tested a code with the sample test and it works fine, but when I try to submit fails, and in all cases it says that is expecting the result to be zero
Thanks