Stacks using Linked List

5

1 votes
Easy
Problem

Same as question 1 with the change that the implementation should be by using a linked list instead of an array. There will be no size specified in the inputs

Sample Input
1
6
push 1
push 2
push 3
pop
pop
top
Sample Output
3
2
1
Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?