🔗 DSA

Linked List vs Array — When Each Wins (Interview Answer)

📅 Jul 2, 2026 ⏱ 4 min read

A guaranteed interview question — and the answer reveals whether you understand memory, not just syntax.

The difference that drives everything

Arrays are contiguous — elements sit side by side in memory, so index access is instant math. Linked lists are scattered — each node points to the next, so reaching item 500 means walking 500 pointers.

The complexity table

The senior-level point

Big-O hides cache locality: arrays are prefetched by the CPU; pointer-chasing lists cause cache misses. In practice arrays beat lists even at things lists are "better" at, until n is large. Saying this in an interview separates you from the crowd.

Where lists actually live

Practice the classic: Reverse a Linked List on our judge — three pointers, prev/cur/next.

← All Articles