Пример #1
0
        public override void execute()
        {
            Solution s = new Solution();

            int[] A = new int[RandomFactory.getInt_SinglePositive(1, 10)];

            for (int i = 0; i < A.Length; i++)
            {
                A[i] = RandomFactory.getInt_SinglePositive();
            }

            int K = RandomFactory.getInt_SinglePositive();

            int[] result = s.solution(A, K);

            Console.WriteLine("Original Array: [{0}]", string.Join(", ", A));

            Console.WriteLine("Rotation: {0}", K);

            Console.WriteLine("Result: [{0}]", string.Join(", ", result));
        }