employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged Employer

Tata Consultancy Services Interview Question

Explain the difference between an array and a linked list, and where each should be used.

Interview Answer

Anonymous

Jan 26, 2026

I explained that arrays store elements in contiguous memory locations and allow fast access using indexes, while linked lists store elements in nodes with pointers to the next node. I mentioned that arrays are better for quick access, whereas linked lists are better when frequent insertions and deletions are required.