1.

Write an algorithmfor the implementaion of the stack.

Answer»

In stack related algorithms TOP initially POINT 0, index of elements in stack is START from 1, and index of last element is MAX. Push operation is used to insert an element into stack. Pop operation is used to REMOVE an item from stack, first get the element and then decrease TOP POINTER.



Discussion

No Comment Found