Home / MCQ Bank / Computer
Computer Stacks In Data Structures Difficulty: Medium

What is the main advantage of using a linked list to implement a stack compared to an array?

Select the correct option to test your answer:

More Computer Questions

We can insert maximum number of columns in Ms Word are ________ Choose the correct statements about enum used in C#.NET? What is the reason for the efficiency of a pairing heap? Which data modeling approach is primarily used for representing data as a collection of rules and facts in a knowledge base? What will be the output of the following Java program? import java.util.*; class Collection_Algos { public static void main(String args[]) { LinkedList list = new LinkedList(); list.add(new Integer(2)); list.add(new Integer(8)); list.add(new Integer(5)); list.add(new Integer(1)); Iterator i = list.iterator(); Collections.reverse(list); Collections.sort(list); while(i.hasNext()) System.out.print(i.next() + " "); } }