Approach hintTry it first, then revealHide
Let each pointer walk its own list and then switch to the head of the other. Both cover the same total distance, so they meet at the shared node, or reach nullptr together when there is none.
Let each pointer walk its own list and then switch to the head of the other. Both cover the same total distance, so they meet at the shared node, or reach nullptr together when there is none.