A palindrome check that breaks your list.
transcript
This check says true. Then it silently breaks your list. The second call gives the wrong answer. Here is why.
Is two, six, six, two a palindrome? Slow and fast find the second half. Slow stops on the second six. Both halves must read from their first nodes.
Reverse from slow to the end. Two walkers compare the halves. Two matches two. Six matches six. The reversed half starts at the old last node.
Now walk from the head. You read two, six, six. The last two is out of reach. The first half still leads into the middle.
Reverse the half again. The chain is whole. Now a second check works. Never leave a list cut in two.
Three steps, every time. Reverse the half, and compare the halves. Then reverse it back.
Reverse it back. Your list stays whole. Try it in the sandbox. Full breakdown in the lecture.