Coding tools
Learn & compete
Community
Practice
In-place pointer swap.
Constraints
Example
head = Node(1, Node(2, Node(3))) new_head = reverse_list(head) # 3 → 2 → 1
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints