how to create algorithm for a linked list using stack

16th Aug 2018, 3:28 AM
Uttam Kumar Yadav
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
16th Aug 2018, 3:55 AM
「HAPPY TO HELP」 - avatar