Reverse a singly linked list in-place, so each node points to the previous node instead of the next one. The first node should point to none, and the last node should correctly point to what was previously the first node.
In-place reversal of node links
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak