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

Answers

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.   Your Comment






Search
Can you Answer!!
  • Q A database administrator is responsible for: A. maintaining the access security of data residing on the computers. B. implementing database definition controls. C. granting access rights to users. D. defining system's data structure.
  • Q Howmany hymns does the Rigveda consists?
  • Q Explain various HTML list tags?
  • Q What is the organ that releases the female gamete under formation? How is this release triggered? What is the organ that collects the released gametes?
  • Q Is there any way to know how long the report executes and how many records will be returned before hitting the "run" option?
  • Q Muscatel literally means what in Italian
  • Q Where is the lion safari park in Kerala situated?
  • Q What is Backorder Processing? What are the two types of Backordering Processing?
  • Q Green Vitroil is ......
  • Q What is the autotrophic hypothesis on the origin of life?
  • Q What is the maximum aggregate insurance for a corporation (A)$50,000 (B)$150,000 (C)$450,000