Concept Flow - Stack Implementation Using Linked List
Create new node
Push operation: new_node.next = top
Update top = new_node
Stack grows with new top
Pop operation: if top != null
Save top node
Update top = top.next
Delete saved node
Stack shrinks with new top
The stack grows by adding new nodes at the top linked to the previous top. Pop removes the top node and updates the top pointer.
