Domanda di colloquio di Microsoft

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

Risposta di colloquio

Anonimo

30 apr 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.