public void TestCase2() { int[] array1 = { 396285104, 573261094, 759641832, 819230764, 364801279 }; long[] expected = { 2093989309, 2548418794 }; long[] result = MiniMaxSum.miniMaxSum(array1); CollectionAssert.AreEqual(expected, result); }
public void TestCase0() { int[] array1 = { 1, 2, 3, 4, 5 }; long[] expected = { 10, 14 }; long[] result = MiniMaxSum.miniMaxSum(array1); CollectionAssert.AreEqual(expected, result); }
public void TestCase1() { int[] array1 = { 256741038, 623958417, 467905213, 714532089, 938071625 }; long[] expected = { 2063136757, 2744467344 }; long[] result = MiniMaxSum.miniMaxSum(array1); CollectionAssert.AreEqual(expected, result); }
public void TestCase7() { string a = "123"; string b = "456"; int digita = a[a.Length - 1] - '0'; int digitb = b[b.Length - 1] - '0'; int[] arr = new int[] { 942381765, 627450398, 954173620, 583762094, 236817490 }; MiniMaxSum.miniMaxSum(arr); }