12.4 Exercises
Basic Difficulty
83. Remove Duplicates from Sorted List
Although LeetCode doesn't enforce it, we still recommend freeing memory, especially when the problem requires deletion.
328. Odd Even Linked List
This problem is actually quite simple; don’t overcomplicate it.
19. Remove Nth Node From End of List
Since we can use the fast and slow pointer technique to find the midpoint, we can also use a similar approach to locate the nth node from the end, without a second traversal.
Advanced Difficulty
148. Sort List
After using fast and slow pointers to find the midpoint of the linked list, you can perform merge sort on it.