public static int SolutionNM(int position, int moves, int[] A) { var len = A.Length; var result = 0; var sumyPrefixowe = Tools.CreatePrefixSum(A); for (int i = 0; i < System.Math.Min(position, moves); i++) { var lewa_poz = position - 1; } return(result); }
public void CreatePrefixSumTest(int[] input, int[] expected) { var result = Tools.CreatePrefixSum(input); CollectionAssert.AreEquivalent(expected, result); }