static void Main(string[] args) { Console.WriteLine("Hello World!"); Linked_List list = new Linked_List(); list.Add(56); list.Add(30); list.Add(70); list.Display(); list.InsertedAtParticular(2, 30); list.RemoveFirstNode(); list.RemoveLastNode(); list.Search(40); }
static void Main(string[] args) { Linked_List linkedList = new Linked_List(); Console.WriteLine("Linked List:"); linkedList.AddNodeFront(5); linkedList.AddNodeFront(7); linkedList.AddNodeFront(14); linkedList.AddNodeTail(49); linkedList.AddNodeFront(10); linkedList.AddNodeAtPosition(23, 5); linkedList.AddNodeAtPosition(74, 3); linkedList.DeleteNodeAtPosition(5); linkedList.PrintList(); linkedList.reverseList(); Console.ReadLine(); }