In an array implementation of stack, a new element is pushed inas the last element in the array. In a linked list implementation,a new element is pushed in as the first element in the linkedlist.
Is it possible to push in the new element as the first elementin an array? Why/How?
Is it possible to push in the new element as the last element ina linked list? Why/How?
Expert Answer
An answer will be send to you shortly. . . . .