Pregunta de entrevista de JPMorganChase

What is the difference between ArrayList and LinkedList

Respuesta de la entrevista

Anónimo

13 sep 2017

The main difference is that ArrayList is dynamic and LinkedList is static in memory allocation. ArrayList shifts memory bits to increase or decrease the size of the data structure in memory. Linked list uses a doubly linked list and so no bit shifting is required.