コード例 #1
0
        public void ReverseNoRecursion()
        {
            var linkedList = new Structures.LinkedList <int>();

            linkedList.Insert(2);
            linkedList.Insert(3);
            linkedList.Insert(4);
            linkedList.Insert(5);

            Printer.Print(linkedList);

            linkedList.ReverseNoRecursion();

            Printer.Print(linkedList);
        }