Affine interview question

When to use an array and linked list?