educative.io

Why not just iterate to both lists' ends, and simply compare the tail address?

Why not just iterate to both lists’ ends, and simply compare the tail address?

Hi! The problem asks to return the point of intersection of the two lists. Iterating to the end of both lists will tell us whether the two intersect or not, but it won’t tell us the exact point of intersection.