Pergunta de entrevista da empresa Capital One

When would it be better to use a LinkedList collection as opposed to an ArrayList?

Resposta da entrevista

Sigiloso

25 de fev. de 2019

A LinkedList is ideal when frequently adding, removing, or accessing the element stored at the head or tail, essentially being a O(1) lookup.

1