In the following stack declaration, what is the stack size? stack = [] # Array stack implementation code example
Example: is array a stack data structure
For example, an array is a sort of linear data structure. However, you can access any element in an array--not true for a stack, since you can only deal with the element at its top.