Opening your learning path
Progress is saved as you study.
Opening your learning path
Progress is saved as you study.
The In-place Reversal pattern applies when you need the In-place Reversal technique within the Linked List Manipulation Patterns pattern. Its time complexity is O(n) and space complexity O(1). It is used in 6 problems on Thita, including Palindrome Linked List, Remove Duplicates from Sorted List and Remove Duplicates from Sorted List II. Common variations are Reordering / Partitioning and Merging Two Sorted Lists.
Master in-place linked list reversal including full reversal, partial reversal, and k-group reversal techniques.
In-place Reversal is one of the 5 subpatterns of the Linked List Manipulation Patterns pattern, which covers in-place reversal, merging sorted lists, reordering, and intersection detection. The whole pattern is about 2 hours of study. This subpattern is a core technique: expect it to come up directly in interviews.
Master linked list manipulation including in-place reversal, merging sorted lists, detecting intersections, and reordering. Essential pointer manipulation techniques for interviews. Problems in this subpattern are usually searched for as reverse linked list, in-place reversal, reverse k group, linked list reversal, leetcode 206, leetcode 92.
Read the theory for In-place Reversal, then work the problems attached to it in the browser editor. Your solution runs against the problem's test cases, and the AI coach offers a hint about the technique you are missing rather than a finished solution. Progress is tracked per subpattern, so the Linked List Manipulation Patterns tracker shows this one as covered once you have solved its problems.
In-place Reversal is one lesson in a 16-pattern DSA course. If you are preparing end to end, work the interview-critical patterns first and use the pattern sheet as the checklist; if you are here for one technique, the Linked List Manipulation Patterns guide is the shortest path back to the rest of it.
6 problems, easiest first.
Fetching theory for In-place Reversal...