Data structures play a big role in how much memory we use when we write computer programs. Here are some important points to understand:
Arrays:
Lists:
In general, data shows that arrays are usually better at saving memory than linked lists. Linked lists can use up to more memory because of those extra pointers.
Data structures play a big role in how much memory we use when we write computer programs. Here are some important points to understand:
Arrays:
Lists:
In general, data shows that arrays are usually better at saving memory than linked lists. Linked lists can use up to more memory because of those extra pointers.