Solution Review: Insertion at Tail
This review provides a way to solve the "Insertion at Tail" challenge.
We'll cover the following...
Solution #
Press + to interact
main.cs
LinkedList.cs
namespace chapter_3{class Solution{static void Main(string[] args){LinkedList list = new LinkedList();var rand = new Random();//srand(time(NULL)); // seed to produce random numbers everytimeint num = 0;for (int i = 1; i < 6; i++){num = rand.Next(10); //generating random numbers in range 1 to 10list.InsertAtTail(num); // inserting value at the tail of the listlist.PrintList();}}}}
If you ...