LeetCode 21: Merge Two Sorted Lists — Step-by-Step Visual Trace
Easy — Linked List | Two Pointers | Recursion | Merge
The Problem
Merge two sorted linked lists into one sorted linked list by splicing together the nodes of the first two lists.
Approach
Use a dummy node to simplify edge cases and maintain a current...
blog.tracelit.dev1 min read