How to Reverse A Linked List — (Common SE Interview Question)

THANKS 👏: I appreciate the many claps most my readers leave because it takes me a long time to write these free articles.

“Reverse this linked list for me”

Such an easy question, but that catches many aspiring software engineers off guard.

Here’s a simple explanation of how to reverse a linked list the easy way and implement it in Python:

How to reverse a linked list the easy way

Enjoy and tell me if you have any Q! :)

--

--

26K+ Reads ✍🏼 Co-founder & CTO @Connect Earth. Ex-Amazon 👨‍💻 Passionate about sustainability and software👌 Views are all my own.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nicolas Carmont

26K+ Reads ✍🏼 Co-founder & CTO @Connect Earth. Ex-Amazon 👨‍💻 Passionate about sustainability and software👌 Views are all my own.