Ad
  • Custom User Avatar

    String.format is suuuuuper slow, avoid using it on production.

  • Custom User Avatar

    Everything's fine with the kata.

  • Custom User Avatar

    it should be 19 characters for everything ,,,,means inside your function you should only have 5 characters , ENJOY !

  • Custom User Avatar

    Finally got it ,sorry 4 e rouble ,thanks

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    I had a look, you failed on test 4 and not on test 5.

  • Custom User Avatar

    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

  • Default User Avatar

    Test 4 is with: a1 = [] a2 = []. Aren't you mixing test 4 and test 5?

  • Custom User Avatar

    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 ??

  • Default User Avatar

    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!

  • Custom User Avatar

    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.

  • Custom User Avatar

    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. :)

  • Custom User Avatar

    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 ?

  • Custom User Avatar

    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

  • Custom User Avatar

    i also have the same issue