14. Fixing the phone tree
An illustration of linked lists

A pregnant couple has set up a phone tree so that news of the birth can be disseminated in the "correct" order (with some people needing to be told before others). A few weeks before the due date, the couple makes super, super good friends with a new couple in the neighborhood and want to add them to the phone tree, right after immediate relatives. Describe what needs to be done.

27 Jun 2018 18:38