LeetCodechevron_rightCategorieschevron_rightlinked list
link

linked list

66 problems
Easy: 12Medium: 47Hard: 7

linked list is one of the most repeated interview dimensions. Start with edge-safe fundamentals, then move into pattern-level trade-offs.

Interview Signal

Frequently tests problem modeling, edge handling, and verbal clarity.

Common Pitfall

Template-only answers break under follow-up questioning.

Practice Strategy

Practice in 3-5 problem rounds and always review complexity alternatives.

Recommended Progression

#TitleDifficulty
2

Add Two Numbers

Add Two Numbers requires careful linked-list pointer manipulation to sum digits while handling carries efficiently in in…

Medium
19

Remove Nth Node From End of List

Remove the nth node from the end of a linked list using a two-pointer approach to solve efficiently.

Medium
21

Merge Two Sorted Lists

Merge two sorted linked lists by splicing nodes into one sorted list using linked-list pointer manipulation and recursio…

Easy
23

Merge k Sorted Lists

Merge k Sorted Lists requires efficiently combining multiple sorted linked lists into one using pointers and priority qu…

Hard
24

Swap Nodes in Pairs

Learn how to swap every adjacent linked-list pair by rewiring nodes safely without changing values or breaking the remai…

Medium
25

Reverse Nodes in k-Group

Reverse Nodes in k-Group challenges you to reverse segments of a linked list in groups of size k.

Hard
61

Rotate List

Rotate a singly linked list to the right by k positions using careful pointer manipulation and two-pointer traversal tec…

Medium
82

Remove Duplicates from Sorted List II

Remove duplicates from a sorted linked list, leaving only distinct values, and return the modified list in sorted order.

Medium
83

Remove Duplicates from Sorted List

Efficiently remove duplicates from a sorted linked list using precise pointer manipulation while maintaining node order …

Easy
86

Partition List

Partition a linked list such that all nodes less than x come before nodes greater than or equal to x while preserving re…

Medium
92

Reverse Linked List II

Reverse a segment of a singly linked list from position left to right using precise pointer manipulation techniques.

Medium
109

Convert Sorted List to Binary Search Tree

Convert a sorted singly linked list into a height-balanced BST using pointer manipulation and divide-and-conquer recursi…

Medium
114

Flatten Binary Tree to Linked List

Flatten a binary tree into a right-skewed linked list by manipulating pointers following a pre-order traversal, handling…

Medium
116

Populating Next Right Pointers in Each Node

Connect each node across every level by reusing established next links to traverse a perfect binary tree without extra q…

Medium
117

Populating Next Right Pointers in Each Node II

Populate each next pointer in a binary tree to its immediate right node, handling nulls and uneven levels efficiently us…

Medium
138

Copy List with Random Pointer

This problem requires copying a linked list where each node has a random pointer in addition to the next pointer.

Medium
141

Linked List Cycle

Determine if a given linked list contains a cycle using pointer manipulation or hashing, focusing on detecting repeated …

Easy
142

Linked List Cycle II

Identify the start of a cycle in a linked list using pointer manipulation, efficiently handling edge cases without modif…

Medium
143

Reorder List

Reorder List requires careful pointer manipulation in a singly linked list to interleave nodes from the ends without alt…

Medium
146

LRU Cache

Implement an efficient LRU Cache using hash table and doubly-linked list to achieve O(1) operations for get and put.

Medium
147

Insertion Sort List

Sort a singly linked list using insertion sort by carefully manipulating pointers to maintain a sorted order efficiently…

Medium
148

Sort List

Sort List requires sorting a singly linked list efficiently using pointer manipulation and merge sort for optimal perfor…

Medium
160

Intersection of Two Linked Lists

Given two linked lists, find the node where they intersect or return null if they do not.

Easy
203

Remove Linked List Elements

Remove all nodes from a linked list that have a specific value, adjusting pointers to preserve the rest of the list.

Easy
206

Reverse Linked List

Reverse a singly linked list in place, converting the head to tail, with an iterative or recursive approach.

Easy
234

Palindrome Linked List

Solve Palindrome Linked List by finding the midpoint, reversing the second half, and comparing mirrored nodes in linear …

Easy
237

Delete Node in a Linked List

Delete Node in a Linked List focuses on pointer manipulation to delete a node in a singly linked list without access to …

Medium
328

Odd Even Linked List

Reorder a singly linked list by grouping odd-indexed nodes first, followed by even-indexed nodes while preserving relati…

Medium
355

Design Twitter

Design Twitter requires implementing post, follow, unfollow, and news feed retrieval using linked-list pointer manipulat…

Medium
382

Linked List Random Node

Select a random node from a singly linked list ensuring uniform probability using efficient pointer techniques and reser…

Medium
430

Flatten a Multilevel Doubly Linked List

Flatten a multilevel doubly linked list by correctly updating next, prev, and child pointers to create a single-level se…

Medium
432

All O`one Data Structure

Implement a data structure that tracks string counts and retrieves max or min keys efficiently in constant time.

Hard
445

Add Two Numbers II

Add Two Numbers II involves summing two numbers represented as linked lists and returning the result as a new linked lis…

Medium
460

LFU Cache

Implement an LFU Cache using linked-list pointer manipulation with constant-time get and put operations for interview sc…

Hard
622

Design Circular Queue

Design a circular queue that allows efficient FIFO operations using linked-list pointer manipulation to optimize space u…

Medium
641

Design Circular Deque

Design and implement a circular deque using linked-list pointer manipulation, ensuring efficient insertion and deletion …

Medium
705

Design HashSet

Implement a custom HashSet without built-in libraries using array scanning and hash lookup for efficient membership chec…

Easy
706

Design HashMap

Implement a custom HashMap from scratch using array scanning and hash lookup without built-in libraries for efficient ke…

Easy
707

Design Linked List

Implement a custom linked list supporting head, tail, index insertions, retrieval, and deletions efficiently with pointe…

Medium
725

Split Linked List in Parts

Efficiently split a singly linked list into k consecutive parts, balancing sizes while preserving the original node orde…

Medium
817

Linked List Components

Count the number of connected components in a linked list subset using array scanning and hash table lookups efficiently…

Medium
876

Middle of the Linked List

Find the middle node of a singly linked list using a two-pointer technique.

Easy
1019

Next Greater Node In Linked List

Find the next greater value for each node in a linked list using monotonic stack techniques for efficient traversal.

Medium
1171

Remove Zero Sum Consecutive Nodes from Linked List

Remove zero-sum consecutive nodes from a linked list by iterating through it, repeatedly deleting sequences that sum to …

Medium
1206

Design Skiplist

Implement a Skiplist efficiently using linked-list pointer manipulation to support search, add, and erase operations in …

Hard
1290

Convert Binary Number in a Linked List to Integer

Convert a binary number represented in a linked list to its decimal value using efficient pointer manipulation.

Easy
1367

Linked List in Binary Tree

Determine if a linked list is represented as a downward path in a binary tree using pointer traversal and recursive chec…

Medium
1472

Design Browser History

Implement a browser history tracker with back, forward, and visit operations using linked-list pointer manipulation effi…

Medium
1669

Merge In Between Linked Lists

Merge a second linked list into a first by removing a specified range of nodes, testing precise pointer updates and list…

Medium
1670

Design Front Middle Back Queue

Implement a queue that efficiently handles push and pop operations at the front, middle, and back using pointer manipula…

Medium
1721

Swapping Nodes in a Linked List

Swap nodes in a linked list using linked-list pointer manipulation and two pointers to solve this medium difficulty prob…

Medium
1797

Design Authentication Manager

Implement an AuthenticationManager using linked-list pointer manipulation and a hash map to track token expirations effi…

Medium
2058

Find the Minimum and Maximum Number of Nodes Between Critical Points

Find the minimum and maximum number of nodes between critical points in a linked list by identifying local minima and ma…

Medium
2074

Reverse Nodes in Even Length Groups

Reverse nodes in even length groups while keeping the odd-length groups intact in a given linked list.

Medium
2095

Delete the Middle Node of a Linked List

Efficiently remove the middle node from a linked list using two-pointer techniques and careful pointer updates to mainta…

Medium
2130

Maximum Twin Sum of a Linked List

Find the maximum twin sum in a linked list by manipulating pointers efficiently and leveraging stack or reversal techniq…

Medium
2181

Merge Nodes in Between Zeros

This problem requires merging nodes between zeros in a linked list by summing up the values between consecutive zeros.

Medium
2289

Steps to Make Array Non-decreasing

Determine the minimum steps to make an array non-decreasing using linked-list pointer manipulation and monotonic stack t…

Medium
2296

Design a Text Editor

Design a text editor that supports text manipulation and cursor navigation operations efficiently with linked-list-based…

Hard
2326

Spiral Matrix IV

In this problem, you need to generate a matrix filled with values from a linked list in a spiral order.

Medium
2487

Remove Nodes From Linked List

This problem requires removing nodes from a linked list when a larger node exists to their right, testing pointer manipu…

Medium
2807

Insert Greatest Common Divisors in Linked List

The problem involves inserting greatest common divisors between adjacent nodes in a linked list.

Medium
2816

Double a Number Represented as a Linked List

Double a number represented as a linked list by carefully managing node values and carries with pointer traversal techni…

Medium
3217

Delete Nodes From Linked List Present in Array

Remove nodes from a linked list if their values exist in a given array.

Medium
3507

Minimum Pair Removal to Sort Array I

This problem asks for the minimum number of operations to make an array non-decreasing by removing pairs of elements.

Easy
3510

Minimum Pair Removal to Sort Array II

The problem asks to find the minimum number of operations to make an array non-decreasing by removing pairs of elements.

Hard

Related Patterns

Linked List LeetCode Problems: 66 Solutions