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.
Pay attention to spaces. Your current solution (different from what you wrote in your comment) has two spaces after the comma and is missing a space after
about
.Thanks
That's because your IDE does not have all the tests that are run by the testing suite for this kata on Codewars.
You will have to rely on the tests here on site. If you wish you, can print the input and observe the expected output for any one test. Then you could add that test to what you're using off-site. Personally, I think it's easiest to just stay on Codewars to complete these tasks for this reason.
This comment is hidden because it contains spoiler information about the solution
When i move my solution on the other IDE i see all goes well but here my code doesn't pass
you can use print() to see which is failing..
The First test pass but the Random refuse for negative input
yeah till now
yeah.. use isNaN(var) to compare if your variable is a number or not before return values
exactly ! my code passed every 43 random tests but it failed one of the basic tests and I don't know why
The Nice one ../ ../
This algorithm is so cute, very simple and have a good time complexity.
this is a strange question, given that the compilation doesn't show us exactly where the fault lies