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.
String.format
is suuuuuper slow, avoid using it on production.Everything's fine with the kata.
it should be 19 characters for everything ,,,,means inside your function you should only have 5 characters , ENJOY !
Finally got it ,sorry 4 e rouble ,thanks
This comment is hidden because it contains spoiler information about the solution
I had a look, you failed on test 4 and not on test 5.
Screenshot of my tests Output
For me its test4 not test5 .See image above
Maybe you are right ,maybe there is a bug in my code , but please just take a look at it.Thanks a lot
Test 4 is with:
a1 = [] a2 = []
. Aren't you mixing test 4 and test 5?I know but from the description is says
If a or b are nil (or null or None), the problem doesn't make sense so return false.
If a or b are empty the result is evident by itself.
b is giving me null ,so how come its expecting true ??
I am very sorry but there are no error in the tests. You can see at the top of the page that more than 5000 guys passed the kata and the tests are the same in all languages. Cheers!
Failing 4th Basic test in javascript even though when i console.log the input
Log
Array1 = [] Array2 = null
and it says
Expected: true, instead got: false
clearly its supposed to return false .Te rest of the test pass.
Remember this in the description?
NOTE: There will also be lists tested of lengths upwards of 10,000,000 elements. Be sure your code doesn't time out.
Your code probably has a runtime of O(n^2), which just means for every element in a list, you're iterating over n more elements. Even if you only iterate over n/2 or n-1 elements per element (nested for loop), you're still winding up iterating on (10,000,000/2)^2 ~= 25,000,000,000,000; or 25 quadrillion items—and that's the efficient version! No computer can parse this under 6-8 seconds... unless you're running military spec and have over 3 teraflops. :)
when i run tests they all pass but when i try to submit it reurns
Unknown error
Process took 6067ms to complete.
is it the server or problem with my code ?
Error in test case .When i run tests i get this error
File "", line 36
collection = range(1,25)
^
SyntaxError: invalid syntax
and when i try to subit i get this error
File "", line 36
Test.describe("Basic tests")
^
SyntaxError: invalid syntax
Help
i also have the same issue