Pregunta de entrevista de Microsoft

The interview included a basic thecnical question regarding the difference between an array and a list.

Respuesta de la entrevista

Anónimo

30 de abr de 2023

All elements in array are the same type while in a list it can hold different types of elements. Arrays are more effient memory-wise because the data is stored continuously while a list might store only pointers to the elemnts continuously.