Neural Ninjas Β· DSA Simulation Labs Β· Lab 13

The Palindrome List Folder

Fold the list exactly in half. If every opposing pair lands on the same value, the whole thing snaps together in green β€” a palindrome. One mismatch, and the fold jams red right there.

Fold State

Fold Log

Controls

πŸ“ FolderI bend the second half backward until it lands exactly on top of the first half. No new nodes β€” I just re-point where "next" leads.
πŸͺž MirrorEach fold, I check: does this value match the one it's landing on? One honest comparison at a time.
Pick a level above to begin.