LinkedList can be used as stack if there is two pointer in which one of them pointing to the front and other is pointing to the rear(last node) where :

1. Insertion done in front and deletion done in back

2. Insertion done in front and deletion done in front

3. Insertion done in back and deletion done in back

4. Insertion done in back and deletion done in front 

1
1 and 2
2
2 and 3
3
3 and 4
4
1 and 4

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation