LinkedList

Let's learn about the LinkedList data structure.

We'll cover the following

What’s a LinkedList?

A LinkedList is generally slower than a regular list, but it can be beneficial when adding or removing items in the middle of a list. As with lists, a LinkedList uses generics.

To use a LinkedList, add the following line of code:

using System.Collections.Generic; // C# 10 comes with ImplicitUsings, meaning the most popular using namespaces such as this one is already built-in so there is no need to declare it

Example

Get hands-on with 1200+ tech skills courses.