Example #1
0
        static void Main(string[] args)
        {
            int[][] input = new int[1][];
            input[0] = new int[5] {
                1, 2, 3, 4, 5
            };
            //input[1] = new int[1] {2};
            //input[2] = new int[1] {3};
            //input[3] = new int[1] {4};

            var res = SpiralMatrix.SpiralOrder(input);

            foreach (int n in res)
            {
                Console.WriteLine(n);
            }

            Console.ReadKey();
        }