Write a function that takes an array, splits the array into every possible set of two arrays, and prints out the max differences between the two array’s minima in O(n) time.
looking for some hint to solve this or some answer. thanks for your time !