LinkedList (C#)

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/26

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:06 AM on 8/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

27 Terms

1
New cards

LinkedList

A generic doubly linked collection in System.Collections.Generic whose elements are stored in LinkedListNode objects connected through previous and next references. Domain: C# → .NET → System.Collections.Generic → Linked Lists

2
New cards

Doubly Linked List

A linked structure in which each node can reference both the node before it and the node after it.

3
New cards

LinkedListNode

A node object that stores a value in a LinkedList and provides access to neighboring nodes.

4
New cards

node.Value

Gets or sets the value stored in a LinkedListNode.

5
New cards

node.Next

Gets the next node in the LinkedList, or null when the node is the last node.

6
New cards

node.Previous

Gets the previous node in the LinkedList, or null when the node is the first node.

7
New cards

node.List

Gets the LinkedList to which the node currently belongs, or null if the node is not attached to a list.

8
New cards

new LinkedList()

Creates an empty LinkedList.

9
New cards

new LinkedList(collection)

Creates a LinkedList containing elements copied from the specified collection.

10
New cards

list.Count

Gets the number of nodes contained in the LinkedList.

11
New cards

list.First

Gets the first LinkedListNode in the list, or null if the list is empty.

12
New cards

list.Last

Gets the last LinkedListNode in the list, or null if the list is empty.

13
New cards

list.AddFirst(value)

Creates a new node containing the specified value and adds it to the beginning of the LinkedList.

14
New cards

list.AddLast(value)

Creates a new node containing the specified value and adds it to the end of the LinkedList.

15
New cards

list.AddBefore(node, value)

Creates and inserts a new node containing the specified value immediately before a specified existing node.

16
New cards

list.AddAfter(node, value)

Creates and inserts a new node containing the specified value immediately after a specified existing node.

17
New cards

list.Remove(value)

Removes the first node containing the specified value and reports whether such a node was found.

18
New cards

list.Remove(node)

Removes the specified LinkedListNode from the LinkedList.

19
New cards

list.RemoveFirst()

Removes the node at the beginning of the LinkedList.

20
New cards

list.RemoveLast()

Removes the node at the end of the LinkedList.

21
New cards

list.Find(value)

Returns the first node containing the specified value, or null if the value is not found.

22
New cards

list.FindLast(value)

Returns the last node containing the specified value, or null if the value is not found.

23
New cards

list.Contains(value)

Determines whether the LinkedList contains the specified value.

24
New cards

list.Clear()

Removes all nodes from the LinkedList.

25
New cards

LinkedList Has No Indexer

LinkedList does not provide List-style zero-based indexed access such as list[index].

26
New cards

LinkedList Node Insertion

Given a valid node reference, inserting or removing nearby nodes can be performed without shifting all subsequent elements as an array-backed list may require.

27
New cards

LinkedList vs List

List is array-backed and optimized for indexed access, whereas LinkedList is node-based and optimized for operations involving known node positions.