Question: In CSharp language, Start a new project named SinglyLinkedList using a console application template. Create a generic class called Node. Implement properties for: NextNode NodeData
In CSharp language,
- Start a new project named SinglyLinkedList using a console application template.
- Create a generic class called Node.
- Implement properties for:
- NextNode
- NodeData
- Create a generic class called SinglyLinkedList
- Implement properties for:
- HeadNode make set private.
- TailNode make set private.
- Count make set private.
- Implement the following LinkedList methods
- AddFirst(T nodeData) Add a value to a new node at the beginning of the linkedList.
- AddLast(T nodeData) - Add a value to a new node at the end of the linkedList.
- RemoveFirst()-Remove the value at the beginning of the linkedList by removing the first node.
- RemoveLast() - Remove the value at the end of the linkedList by removing the last node.
- Test linked list collection.
Node
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
