Example #1
0
        internal static LinkedList <int> GetList(int numberOfNodes)
        {
            var list = new LinkedList <int>();

            for (int i = 1; i <= numberOfNodes; i++)
            {
                list.Insert(i);
            }

            return(list);
        }