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.
Try to care about boundary cases :)
">= 22" should be "> 22"
That's clean AF
I concatenated the NaN case because it kept throwing me that expected message. I had it as a single string, just haven't changed it back yet. Meh.
This comment is hidden because it contains spoiler information about the solution
Test Results:
Solution
should test for something
This is just an example of how you can write your own TDD tests - Expected: 'expected', instead got: 'actual'
Completed in 1ms
Completed in 6ms
What about it didn't work? Was there an error message? What was the message?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The answer to your question is yes...but seriously not really, just a few mistakes.
1.) You need to put the return statement outside the 'for' loop. Otherwise it will only loop once then return (only doing the first item in list).
2.) You need to invert the value by multiplying by -1, not 1. Multiplying by -1 gives the inverse, multiplying by 1 gives the number.
3.) You need to check that store[i] is not zero, if it is zero, you must leave it as it is, else you need to invert it (conditional to check if zero).
This comment is hidden because it contains spoiler information about the solution