Linked ListsReverse Linked List
Progress
solution.py
⌘↵ run
Loading...

Reverse Linked List

easy
You've got this! Start small, think out loud.

Reverse a singly linked list iteratively. Given the head of a linked list, return the head of the reversed list.

Time:O(n)
Space:O(1)
pointer-manipulationgoogle-favorite
OUTPUT

Run your code to see output