Mention the advantages of representing stacks using linked lists than arrays?



Mention the advantages of representing stacks using linked lists than arrays?..

Answer / Amit Rawat

Representing a stack using a linked list has advantages over an array, such as: (1) No need to worry about the size of the array, as it can grow dynamically. (2) Insertion and deletion operations are faster because no reallocation of memory is required.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Differentiate between the singly linked list and doubly linked list.

1 Answers  


What is a graph?

4 Answers  


Is hashmap sorted?

1 Answers  


How do you get placements?

1 Answers  


Tell me how to find middle element of linked list in one pass?

1 Answers  


What is difference between capacity and size of arraylist?

1 Answers  


What is heap tree explain with example?

1 Answers  


What is the difference between collections class vs collections interface?

1 Answers  


How do you use the sort function?

1 Answers  


What does it mean to sort an array?

1 Answers  


Explain how is linked list implemented?

1 Answers   BPL,


What is dynamic array how it is created?

1 Answers  


Categories