Back to course home
0% completed
Vote For New Content
More cleanly written
Luis Roel
Aug 27, 2023
class Solution: def reverse(self, head): prev = None curr = head while curr: temp = curr.next curr.next = prev prev = curr curr = temp return prev
0
0
Comments
Comments
On this page
Problem Statement
Solution
Code
Time Complexity
Space Complexity