Ad
  • Custom User Avatar

    You are right, I was mixing them up. I was apparently being dyslexic when I read my output lines.

    Thanks!

  • Custom User Avatar

    Maybe there is another corner case with the null or empty?

  • Custom User Avatar

    I have taken care of boundary cases like a or b being null.
    And then if a length is zero or b length is zero, I will return false.
    Could you tell me if where I am going wrong?

  • Custom User Avatar

    Did you think of corner cases?

  • Custom User Avatar

    Trying in Java.
    I'm having issue with Test case # 4. Other test cases passed.
    Pls help.

  • Custom User Avatar

    I think you are mixing test 5 and test 6. In doubt post your test but there are no errors in the tests.

  • Custom User Avatar

    In C#, I'm having trouble with test case #5. After reading through comments, a couple of others have too.

    Input:
    a=[121, 144, 19, 161, 19, 144, 19, 11, 1008]
    b=[121, 14641, 20736, 36100, 25921, 361, 20736, 361]

    This is basically the invalid example from the description with "1008" being added to array "a", but this time it's expected to return true. I cannot wrap my head around why it is expected to return true, when it is shown that it should return false in the description of the kata itself. Any suggestions?