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.
Fixed
The issue is not related to Babel or "use strict" (test won't even run in strict mode).
Testing the solution code by
checkCode(arguments.callee.toString());
causes false positives like above because it's testing the solution and some internal setup code inserted by Codewars to run the test. The solution should be validated by reading/home/codewarrior/solution.txt
. See How To: Read the user's solution within your test.'global was reassigned'
is fromthrow new Error('global was reassigned')
I added (#298) for #259.Hi, I have just updated the description, please re-read as you were probably misunderstanding the task slightly.
Let me know if you're still having problems. Thanks!
Did you figure out where you went wrong? I'm having a similar issue...
Hi. I have just updated the tests so the random inputs are shown if your answer is wrong. I put in your solution and ran the tests, and tried (by hand) one of the random ones you got wrong, and it agreed with my solution. I think you must have misunderstood the task slightly- apologies but I haven't had time to look through your logic- maybe try again now the tests are more descriptive and let me know if you still have issues?
Thanks
Hi, please could you write your solution in a comment here (and mark as spoiler) or send it to me in a private message? Thanks