Ad
  • Default User Avatar

    Thank you so much! it make sence now...i got it!

  • Custom User Avatar

    If both have 0 length it should return true. Both arrays are the 'same' - that is to say they have no elements.

  • Default User Avatar

    I also tried this situation...not useful~

    if(a.length == 0 || a == null || b.length == 0 || b == null){
    return false;
    }

    it also says "expected:<false> but was:<true>"

  • Custom User Avatar

    maybe they're null?

  • Default User Avatar

    I think i have same problem with you..have you passed later? what did you do?

  • Default User Avatar

    Sorry, I misunderstood.
    This translation is rather old and I am not the Python translator.
    Moreover - as you might know - when more than 500 warriors have passed a kata in a given language it is not authorized to change the tests. Some months ago I added some tests in a few other languages, in Python it was impossible.
    Anyway thanks for your posts.

  • Default User Avatar

    [JAVA]
    I can pass all cases except case 4, which length of int[] a and int[] b both 0. i've already checked for this situation at the first time as the code:

    if(a.length == 0 || b.length == 0){
    return false;
    }

    but it didn't work!!
    isn't it right? did i miss something?