When should I use a List vs a LinkedList
When should I use a List vs a LinkedList is a DSA topic. In plain words you use it for a ticket queue node in a counter. Don’t start with a slogan — start with that picture.
Smallest example: head → next → …. Type it, run it, and say what you see. If you can do that from memory, you know When should I use a List vs a LinkedList.
From the example next to this theory — When should I use a List vs a LinkedList: dry-run [4, 1, 3].
Trap — losing the next pointer on delete. Fix that before you talk about advanced DSA.
Viva — what is When should I use a List vs a LinkedList? Then show head → next → …. Then name the trap.
What is When should I use a List vs a LinkedList? Show this: head → next → …. Trap: losing the next pointer on delete.