0
Algorithm
how to create algorithm for a linked list using stack
1 Answer
+ 10
a stack is already a type of linked list :/
So if you already have a stack, just change push and pop to insert and remove.
Add an extra step to search the list if you want because you shouldnt be able to, in most cases, "search" a stack