Reverse a stack wothout using any other data structure
Sigiloso
If a stack is implemented using linked list we can keep track of head and tail nodea and an auxiliary node that srores tail. Move all the nodes 4m head to tail until we visit the tail that we stored in auxiliary node. Note that while replacing the nodes put them after the initial tail node but not after the actual tail