dsa1 min read
Remove Duplicates from Sorted List — Single Pass
Remove duplicate nodes from a sorted linked list in O(n) with a single pointer walk.
Read →
webcoderspeed.com
5 articles
Remove duplicate nodes from a sorted linked list in O(n) with a single pointer walk.
Rotate a linked list to the right by k places by finding length, computing effective rotation, and rewiring.
Split a linked list into k consecutive parts as evenly as possible, front parts get the extra nodes.
Merge all nodes between 0s into a single node with their sum, modifying the list in-place.
Insert a value into a sorted circular linked list by finding the correct position with careful edge case handling.