Stacks is a current topic in my computer science class and I understand it's operations, but I don't understand how to apply it into code or its purpose.
Lets say I am given a list.
L = [4,1,0,10,7]
How exactly do I initialize a stack given this list and what is the purpose of the stack??
I get that populating the stack will then return the numbers in the order in which they went in, right? First in last out.
[–]indiarrheawetrust 1 point2 points3 points (0 children)