Question: Why is time taken to access an element in a non-homogeneous list considered as constant or How is a non-homogeneous list stored in memory in case of python?

In case of a homogeneous list, knowing the type and position, the memory location can be determined but how is it done in case of a non homogeneous list so fast as to consider it as a function of constant time?

Going through this page [Does Python use linked lists for lists? Why is inserting slow?](https://stackoverflow.com/questions/12274060/does-python-use-linked-lists-for-lists-why-is-inserting-slow) I assume it stores elements in contiguous memory locations.

Answer: 
Expand your controller action with a new parameter:

```
public JsonResult ResolveProfileSelectionRequired(ResolveProfileSelectionRequiredModel model, bool newtransferee = false)

```

and check it inside the action.
You could use:

```
if (Request.Form["newtransferee"].ToLower() == "true")

```

or does it work if you write this instead of the manual html?

```
@Html.HiddenFor(model => model.NewTransferee)

```