First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. George Carrette
Write program to find the sum of subarray within a one-dimensional array of numbers which has the largest sum.
No of Maximum value array: 3 0 to 0 0 to 1 0 to 2