Ad
  • Custom User Avatar

    a.equals(b) where a and b is an instance of Vector. But you are comparing a's array with a's resulting array (result) which stores the result of last method call for that particular instance.

  • Default User Avatar

    oh i forgot to change the placeholder variable name

  • Default User Avatar

    My equal method fails the first and second equality test, it returns a False but i can't see any correlation between '[1, 4, 9]' and '[1, 2, 3]' or '[9, 16, 25]' and '[3, 4, 5]' for them to be a True. How is this wrong? python