Learn How To Reverse A Linked List Using Go

By Harrison Brock / April 23, 2019

This blog post is a part of a series on programming interview questions. In the post, you will learn how to reverse a linked list. You can find more interview questions blog post here.

Question

A common question that comes up in coding interviews is to reverse a linked list. In this post, I will show one way to reverse a linked list.

Example LinkedList

Here is an example linked list of integers.

Reverse the LinkedList

The code below is one solution for reversing a linked list.

Conclusion

In this blog post, you learned how to reverse a linked list. You can learn more about linked lists at GeeksforGeeks.

About the author

Harrison Brock