I am working with two 2D arrays:
illustration
arr1 = [['2001-01-01', 100], ['2001-01-02', 105],...]
arr2 = [['2001-01-01', 100], ['2001-01-02', 120],...]
query
I want to determine if subtracting any of the [i][1] elements of the arrays from each other will yield a negative number. What kind of loop should I use for optimal performance and efficient code?