DEV Community

Jesus Gonzalez
Jesus Gonzalez

Posted on

Reverse the elements of a Singly Linked List using a Stack

Reverse the elements of a Singly Linked List using a Stack as an approach

It is not the most efficient way to solve this problem but it is good to know other ways to solve it by helping us with other data structures

https://play.golang.org/p/Obbq73zUrD2

Image description

Top comments (0)