Added GetCount Method to Linked List
This commit is contained in:
parent
1c5a9c83ce
commit
2a9cf2ff4d
@ -122,6 +122,11 @@ namespace C_.Datastructures.LinkedList
|
|||||||
node!.Next = node.Next!.Next;
|
node!.Next = node.Next!.Next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int GetCount()
|
||||||
|
{//Return the number of items in the list
|
||||||
|
return Count;
|
||||||
|
}
|
||||||
|
|
||||||
private LinkedListNode<T>? Traverse()
|
private LinkedListNode<T>? Traverse()
|
||||||
{
|
{
|
||||||
//Start at Head of list
|
//Start at Head of list
|
||||||
|
Loading…
Reference in New Issue
Block a user