Loading...
Given a linked list (as comma-separated values), return True if it is a palindrome.
1,2,2,1
True
1,2,2,1, which can be visualized as a sequence of nodes with values 1→2→2→1.True because the input linked list reads the same backward as forward.