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.
That's part of the task:
It's not directly related to how + or concat work. Also, you can't use them here.
Looks like I did saw all this "...there must be a space between the two strings"
And where does it say it adds a space?
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
You've destroyed
games
withsplice
how is that not mutating the input?This comment is hidden because it contains spoiler information about the solution
No, I'm not mutating the input
Write
console.log(games);
as the first line of your code and before your function's return line too, see if they're different, if so, you've mutated the input.Could you just post your code in a comment with a spoiler tag?
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
The user can modify the input in Python.
But have you tried not mutating the input?
This comment is hidden because it contains spoiler information about the solution
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
Loading more items...