An Array-Based Stack • Create a stack using an array by specifying a maximum size N for our stack, e.g. N = 1,000. • The stack consists of an N-element array S and an integer variable t, the index of the top element in array S.
Download the Study24x7 App, so you can connect and collaborate.