You are viewing a single comment's thread. Return to all comments →
Can someone explain me, why in the below Explanation in the third step is missing the subarray 3,9,5? which is 21 % 7 = 3 the largest sum
And how should it work if the array has 100000 elements? It will have millions of operations (subarrays) beginning first step with 99999 operations.
Seems like cookies are disabled on this browser, please enable them to open this website
Maximum Subarray Sum
You are viewing a single comment's thread. Return to all comments →
Can someone explain me, why in the below Explanation in the third step is missing the subarray 3,9,5? which is 21 % 7 = 3 the largest sum
And how should it work if the array has 100000 elements? It will have millions of operations (subarrays) beginning first step with 99999 operations.