I don't care if it works on your machine! We are not shipping your machine! Vidiu Platon

dynamic stack

Language Java | Level Intermediate | Category Data structure | August 30, 2015 2:12 pm


Data structure Description

Write a program to implement the dynamic stack.The dynamic stack allocates memory dynamically


Output

   					 

Stack Size: 5
Push the element: 0
Push the element: 1
Push the element: 2
Push the element: 3
Push the element: 4
Stack is full! Double the size
Push the element: 5
Removed entry: 5
Removed entry: 4
Removed entry: 3

				    

Comments


No comments available!

Please login to add comments.