Example #1
0
        static void Main(string[] args)
        {
            LinkedList linkedList = new LinkedList(new Node("1"));

            linkedList.AddToEnd(new Node("2"));

            linkedList.AddToEnd(new Node("3"));

            linkedList.AddAtIndex(new Node("100"), 2);

            Console.WriteLine(linkedList);
        }