Suppose we have an array of some integers (can be both +ve and -ve).
We find non-empty maximum and minimum subarrays(subarrays have successive elements only) from this.
My claim is that these subarrays either are disjoint(no common element) OR one totally contains the other. There cannot be anything like partial intersection.
Is this claim true? If not can you give a counter-example?
Example case: 13 -3 -25 20 -3 -16 -23 18 20 -7 12 -5 -22 15 -4 7
max subarray is from 8th to 11th element having sum 43. min subarray is from 2nd to 7th element having sum -50.