Which of the following is/are true when LinkedList is used as stack and there is two pointer in which one of them pointing to the front (first node) and other is pointing to the back (last) node?
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