Your question is Sum of Two Arrays. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
A Western Digital storage service receives two non-empty arrays of integer measurements. Return the sum of the smallest value in the first array and the smallest value in the second array.
Do not assume either array is sorted. The solution should scan each array directly and handle negative values.
Implement sum_of_minimums(array1, array2):
array1 and array2.min(array1) + min(array2).def sum_of_minimums(array1, array2):