solution.py
⌘↵ runLoading...
Reverse Linked List
easyYou'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