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 you solved it in a way that may against the odds~~
It's specified in the description what to do with those values, so not an issue:
Why does the kata include tests with numbers not used in the RGB system?
https://www.youtube.com/watch?v=hhI4x6hx21s
according to the video the numbers should be between 0 - 255 cannot be more...
I agree!
The kata has wrong tests
the numbers of RGB must be between 0 and 255 no more and certainly not negatives
video explains the RGB system
v
v
v
https://www.youtube.com/watch?v=hhI4x6hx21s
Indeed, Thank you :)
It's passing the tests for me. Maybe you modified sample tests by accident? Try hitting the 'Attempt' button.
This comment is hidden because it contains spoiler information about the solution
Not a kata issue. Multiple 'WUB's in a row should be replaced by only 1 space, not more, which is exactly what it says in the logs.
This comment is hidden because it contains spoiler information about the solution
Hi, the tests are expecting javascript objects with no prototype. In your case, your objects have the Obj prototype. You could create the output objects using the litteral object syntax or use Object.assign/spread operator to copy your Obj properties into a basic literal object.
Shame on you. Really?? 😳 Or did you already solve it?
Nice solution by the way.
No, and please read that,
(-1) * 3 * (-100)
is 300, not -300 and 300 > 30If the array was instead:
[[1,1],[2,3],[10,-100]]
the answer would be 30 and not 300.In the kata description abs(array) is required ::
solve( [[1,-1],[2,3],[10,-100]] ) = 300, given by (-1) * 3 * (-100)
if not then the answer would've been 30
However; numbers' negativity is not ignored in all the tests
EX: Test.assertEquals(solve([[-1,2,-3,4],[1,-2,3,-4]]),12)
Am I getting the kata wrong?
but in the kata description abs(array) is requested ::
solve( [[1,-1],[2,3],[10,-100]] ) = 300, given by (-1) * 3 * (-100)
else the result would've been 30 not 300 !!!
This comment is hidden because it contains spoiler information about the solution
Loading more items...