Pergunta de entrevista da empresa Wipro

What is the difference between array and linked list?

Resposta da entrevista

Sigiloso

19 de fev. de 2022

An array is a collection of elements of similar data type & a linked list is a collection of objects known as a node where node consists of two parts( data node & address node ). The key difference is that array elements stores in a contiguous memory location whereas linked list elements can be stored anywhere in the memory or randomly stored.