DSA
Visual
About Us
Contact Us
Privacy Policy
Terms
Browse Problems
About Us
Contact Us
Privacy Policy
Terms
Problems
/
Linked List
/
Reverse Linked List
#35
Easy
Time
O(n)
Space
O(1)
Animated
Reverse Linked List
Reverse a singly linked list.
LeetCode ↗
Mark Solved
Visualization
Problem
Solution
Click play to start
Step 0 / 0
Press play to start the visualization.
1×
Steps
Description
Reverse a singly linked list.
Constraints
Time Complexity:
O(n)
Space Complexity:
O(1)
Tags
linked-list
recursion
Solve on LeetCode ↗
Solution code coming soon. Practice on LeetCode for now.
Solve on LeetCode ↗
Next
Merge Two Sorted Lists