Union and Intersection of two Linked Lists
Don’t start Union and Intersection of two Linked Lists with jargon. Start with a ticket queue node. That is the whole point.
Union and Intersection of two Linked Lists on the board: head → next → …. Then say what a ticket queue node looks like after.
Union and Intersection of two Linked Lists exists so Riya can keep a ticket queue node correct in a counter.
Union and Intersection of two Linked Lists shows up in a counter. Name a ticket queue node, not “a real-world scenario”.
Union and Intersection of two Linked Lists trap: losing the next pointer on delete. Riya loses marks for that every viva.
Union and Intersection of two Linked Lists is not a lonely heading. Riya ties it to a ticket queue node.
One breath for Union and Intersection of two Linked Lists, then a ticket queue node, then losing the next pointer on delete. Sit down.
[10] → [20] → [30] → / head tail
Board: a ticket queue node. Dry-run Union and Intersection of two Linked Lists. Name the trap: losing the next pointer on delete.