0
Name the system /order followed by linked-list.
linked-list follows LIFO that is, Last In First Out.
3 odpowiedzi
+ 8
linked list doesn't not have any particular order, any node can be added or removed from anywhere. But stack follows LIFO order, i.e last added element is the first that is removed, so when you implement stack using linked list you will have to follow Last In, First Out order.
+ 1
Last In First Out
0
You can think LIFO as if you're stacking plates. The Last plate added to the top of the stack is the First plate to be taken from the stack.