using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static long largestValue(int[] A) { // Return the largest value of any of A's nonempty subarrays. int total = 0; int start =0; int end = A.Count()-1; for(int i = 0;i0;i--) { if(total < total - A[i]) { end = i-1; total = total-A[i]; } else { break; } } //Console.WriteLine(end); int sumvalue =0; for(int i = start;i