Ad
  • Custom User Avatar

    Add print(array1, array2) at the start of your funtion. It has something to do with negative values...

  • Custom User Avatar

    Your first attempt doesn't consider arrays of different lengths, and also it always returns after just 1 iteration, because you have a return in a for loop.