public static void DisplayQuest5() { CircuitLinkedList <Employee> list = new CircuitLinkedList <Employee>(); list.InsertFromLast(new Employee(1, "A")); list.InsertFromLast(new Employee(2, "B")); list.InsertFromLast(new Employee(3, "C")); list.InsertFromLast(new Employee(4, "D")); Console.WriteLine(list.FindNextDuty("C", 7)); }
public static void DisplayCircuitLinkedList() { CircuitLinkedList <int> list = new CircuitLinkedList <int>(); list.InsertFromLast(3); list.InsertFromLast(4); list.InsertFromLast(5); list.InsertFromFront(1); list.InsertFromFront(2); Console.WriteLine(list); list.RemoveData(data => data % 2 == 0); Console.WriteLine(list); }