Exemplo n.º 1
0
            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);
            }
Exemplo n.º 2
0
        public void CreatePrefixSumTest(int[] input, int[] expected)
        {
            var result = Tools.CreatePrefixSum(input);

            CollectionAssert.AreEquivalent(expected, result);
        }