Concept Flow - Stack Implementation Using Linked List
Create new node with data
Set new node.next to current top
Update top pointer to new node
Stack push complete
Check if top is None?
Yes
Stack is empty
No
Access top node data
Update top to top.next
Stack pop complete
Push adds a new node at the top by linking it to the current top. Pop removes the top node by moving the top pointer to the next node.