1.

Mention The Advantages Of Representing Stacks Using Linked Lists Than Arrays?

Answer»
  • It is not necessary to specify the number of elements to be stored in a stack during its declaration, SINCE memory is allocated dynamically at run time when an element is added to the stack.
  • Insertions and deletions can be handled easily and efficiently.
  • Linked LIST representation of STACKS can grow and shrink in size without wasting memory SPACE, depending upon the insertion and DELETION that occurs in the list.
  • Multiple stacks can be represented efficiently using a chain for each stack.



Discussion

No Comment Found