Merge Two Sorted Linked Lists
Don’t start Merge Two Sorted Linked Lists with jargon. Start with a ticket queue node. That is the whole point.
Keep Merge Two Sorted Linked Lists small. Vikram should finish a ticket queue node in a few lines, not a 40-line dump.
Without Merge Two Sorted Linked Lists, a counter gets messy and a ticket queue node is hard to trust.
Merge Two Sorted Linked Lists shows up in a counter. Name a ticket queue node, not “a real-world scenario”.
Merge Two Sorted Linked Lists trap — losing the next pointer on delete. Vikram loses marks for that every viva.
After Merge Two Sorted Linked Lists, Vikram should still remember losing the next pointer on delete.
Close Merge Two Sorted Linked Lists with: “If I skip it, a ticket queue node goes wrong like this: losing the next pointer on delete.”
[10] → [20] → [30] → / head tail
Board: a ticket queue node. Dry-run Merge Two Sorted Linked Lists. Name the trap: losing the next pointer on delete.