Loading page…
A team lead asks whether a retry chain ever ends, where its loop begins, where two chains meet and which node is k from the end. Two cursors at different speeds answer them with a fixed amount of memory. The lecture shows why fast must meet slow in a loop, how a second phase finds where the loop begins, how two joined chains are lined up, and how a gap of k minus one finds a node from the end, with the classic mistakes.
Your team lead asks four questions about a chain.