How do you implement a stack?



How do you implement a stack?..

Answer / Lakki Rani

A Stack can be implemented using arrays, linked lists, or even classes. In an array-based implementation, elements are added and removed from the end of the array. A Linked List Stack allows for dynamic resizing of the stack.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Will hashmap allow null keys?

1 Answers  


What is indexing an array?

1 Answers  


What is the need for priority queue?

1 Answers  


How many types of arrays are there?

1 Answers  


What is the use of placement new?

1 Answers  


Define an algorithm.

1 Answers  


What is a vector class?

1 Answers  


How does quick sort work?

1 Answers  


Define a full binary tree ?

1 Answers  


What are the drawbacks of array implementation of queue?

1 Answers  


What are AVL trees?

1 Answers   HAL,


What are the different binary tree traversal techniques?

1 Answers  


Categories