← Questions

Palindrome linked list without modifying the list

0
MicrosoftCodingLast asked Apr 2026

Decide whether a singly linked list reads the same both ways. Do it without changing the list, or restore it exactly if you reverse part of it. Compare the stack approach with reversing the second half in place.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding