C# C# Collections Lists Lists

Carel Du Plessis
PRO
Carel Du Plessis
Pro Student 16,356 Points

Internally, items inside of a List are stored in an array.

can someone example what this question referring to.

Internally, items inside of a List are stored in an array.

Answer to Choose From True or False

Correct answer True

1 Answer

Brendan Whiting
MOD
Brendan Whiting
Front End Web Development Treehouse Moderator 84,071 Points

Arrays require us to explicitly manage the size of the array. If we need more spots in memory than we originally provisioned, we have to create a new array that's larger and manually copy into it. Lists have a nicer interface that doesn't require the developer to code all of this logic, but under the hood they're still arrays and this work is being done for you.

When it comes to knowing the efficiency of your algorithms it's important to know that ultimately they're still arrays,