Opening your learning path
Progress is saved as you study.
Opening your learning path
Progress is saved as you study.
The Linked List Manipulation Patterns pattern applies when you need in-place reversal, merging sorted lists, reordering, and intersection detection. Its time complexity is O(n) and space complexity O(1). It is used in 17 problems on Thita, including Add Two Numbers, Insert Greatest Common Divisors in Linked List and Intersection of Two Linked Lists. Common variations are Reordering / Partitioning and In-place Reversal.
Master linked list manipulation including in-place reversal, merging sorted lists, detecting intersections, and reordering. Essential pointer manipulation techniques for interviews.
Linked List Manipulation Patterns is pattern 5 of 16 in the Thita.ai DSA course. It covers in-place reversal, merging sorted lists, reordering, and intersection detection, split into 5 subpatterns and about 2 hours of study. It is one of the interview-critical patterns, so it is worth covering before your first onsite.
Each subpattern below has its own theory page and problem set. They are listed in the order the course teaches them.
Read the theory for a subpattern, then solve its problems in the browser editor. Your solution runs against the problem's test cases, and the AI coach gives a hint on the technique you are missing rather than the finished answer. Progress is tracked per subpattern, so the tracker shows which of the 5 Linked List Manipulation Patterns subpatterns you have covered. Topics covered here include linked list, linked list reversal, merge linked lists, linked list intersection, linked list manipulation, pointer manipulation, singly linked list, doubly linked list.
17 problems, easiest first.
Fetching theory for Merging Two Sorted Lists...