What is the default Capacity of List(Stack, Queue)?
Under the hood Lists (Stacks and Queues) rely on array to store their items. Whenever we create a empty list the default capacity of the list will be 0. At this time the underline array will be empty. In the code below we are creating an empty list and then we are writing its capacity… Read More »