Grokking Google Coding Interview
Ask Author
Back to course home

0% completed

Vote For New Content
Luis Roel
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