Ad
  • Custom User Avatar
    a1 = [2, 2, 3]
    a2 = [4, 9, 9]
    test.assert_equals(comp(a1, a2), False)
    a1 = [2, 2, 3]
    a2 = [4, 4, 9]
    test.assert_equals(comp(a1, a2), True)
    

    Each element counts, repeating or not. If you remove repetitions, then sure - they're "same".. But it doesn't say anywhere in description to do so, so your approach will be incorrect.

  • Custom User Avatar

    They haven't the same input values and both tests expect different output. Nothing wrong with that.

  • Custom User Avatar

    That's just not true. Look at the inputs again, carefully. There's at least 1 different number.