We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Thanks for this. I used the same process you did, but I completely forgot to set the tail node to None so my function kept timing out due to the circular reference.
Reverse a linked list
You are viewing a single comment's thread. Return to all comments →
Thanks for this. I used the same process you did, but I completely forgot to set the tail node to None so my function kept timing out due to the circular reference.
Here's my Python implementation: