Pattern
Linked List
A compact view of archive entries grouped by recurring technique.
36 entries
36 entries tagged as Linked List.
01.11.2025
medium3217. Delete Nodes From Linked List Present in Array
Remove an array from linked list
14.07.2025
easy1290. Convert Binary Number in a Linked List to Integer
Binary linked list to decimal
29.09.2024
hard432. All O`one Data Structure
Count usage frequencies in O(1) list
10.09.2024
medium2807. Insert Greatest Common Divisors in Linked List
Insert gcd in-between LinkedList nodes list
09.09.2024
medium2326. Spiral Matrix IV
LinkedList to spiral 2D matrix list
08.09.2024
medium725. Split Linked List in Parts
Split LinkedList into k parts list
07.09.2024
medium1367. Linked List in Binary Tree
Is the LinkedList in the BinaryTree? list
06.09.2024
medium3217. Delete Nodes From Linked List Present in Array
Remove nums from a Linked List list
8.07.2024
medium1823. Find the Winner of the Circular Game
Last of k-th excluded from 1..n
5.07.2024
medium2058. Find the Minimum and Maximum Number of Nodes Between Critical Points
[min, max] distance between critical points in linked list list
4.07.2024
medium2181. Merge Nodes in Between Zeros
Collapse in-between 0 nodes in a LinkedList list
07.05.2024
medium2816. Double a Number Represented as a Linked List
Double the number as a Linked List list
06.05.2024
medium2487. Remove Nodes From Linked List
Make a Linked List non-increasing list
05.05.2024
medium237. Delete Node in a Linked List
Delete current node in a Linked List
23.03.2024
medium143. Reorder List
Reorder Linked List 1->2->3->4->5 -> 1->5->2->4->3
22.03.2024
easy234. Palindrome Linked List
Is Linked List a palindrome
21.03.2024
easy206. Reverse Linked List
Reverse a Linked List
12.03.2024
medium1171. Remove Zero Sum Consecutive Nodes from Linked List
Remove consequent 0-sum items from a LinkedList
07.03.2024
easy876. Middle of the Linked List
Middle of the Linked List
06.03.2024
easy141. Linked List Cycle
Detect cycle
03.03.2024
medium19. Remove Nth Node From End of List
Remove nth node from the tail of linked list.
7.09.2023
medium92. Reverse Linked List II
Reverse a part of Linked List
6.09.2023
medium725. Split Linked List in Parts
Split Linked List into k almost equal lists
4.09.2023
easy141. Linked List Cycle
Detect a cycle in a LinkedList
15.08.2023
medium86. Partition List
Partition a Linked List by x value
18.07.2023
medium146. LRU Cache
use firstNode and lastNode
17.07.2023
medium445. Add Two Numbers II
Linked List of sum of two Linked Lists numbers, 9->9 + 1 = 1->0->0
17.05.2023
medium2130. Maximum Twin Sum of a Linked List
Max sum of head-tail twin ListNodes: a-b-c-d -> max(a+d, b+c)
15.05.2023
medium1721. Swapping Nodes in a Linked List
Swap the values of the head-tail k'th ListNodes.
11.03.2023
medium109. Convert Sorted List to Binary Search Tree
Compute the middle of the linked list.
10.03.2023
medium382. Linked List Random Node
Write the naive solution, then go to Wikipedia, and hope you will not get this in the interview.
09.03.2023
medium142. Linked List Cycle II
careful with corner cases.
15.02.2023
easy989. Add to Array-Form of Integer
use linked list to add to the front of the list in O(1)
28.01.2023
hard352. Data Stream as Disjoint Intervals
careful with merge
6.12.2022
medium328. Odd Even Linked List
// 1 2
5.12.2022
easy876. Middle of the Linked List
fun middleNode(head: ListNode?, fast: ListNode? = head): ListNode? =