Linked lists are a fundamental data structure in computer science. This page provides a list of exercises to help you understand and practice linked lists.
Exercises
Reverse a Linked List Write a function to reverse a singly linked list.
Merge Two Sorted Lists Given two sorted linked lists, merge them into one sorted list.
Remove Duplicates from Sorted List Given a sorted linked list, delete all duplicates such that each element appear only once.
Detect a Loop in a Linked List Given a linked list, determine if it has a loop.
Delete a Node in a Linked List Given a linked list and a value, delete the node with that value.
Find the Middle of a Linked List Given a linked list, find the middle element.
Palindrome Linked List Determine if a linked list is a palindrome.
Intersection of Two Linked Lists Given two linked lists, determine if they intersect.
Resources
For more information and resources on linked lists, please visit our Data Structures page.