public static void Test() { Solution s = new Solution(); int[] i1 = new[] { 0, 2, 1, -6, 6, -7, 9, 1, 2, 0, 1 }; Console.WriteLine(s.CanThreePartsEqualSum(i1)); int[] i2 = new[] { 0, 2, 1, -6, 6, 7, 9, -1, 2, 0, 1 }; Console.WriteLine(s.CanThreePartsEqualSum(i2)); }