What are the advantages and disadvantages of a stack in terms collecting elements of the same kind? Compared to an array, is a stack more efficient in execution and memory utilization? Why? Can you use an example to support your statement?
What are the advantages and disadvantages of a stack in terms collecting elements of the same kind? Compared to an array, is a stack more efficient in execution and memory utilization? Why? Can you use an example to support your statement?