Question bank › Linked List
Dsa Linked List Easy

Palindromic Linked List

You are given a linked list. Write a program to determine if the linked list is a palindrome. Input format: - The first line contains an integer n, the number of elements in the linked list. - The next n lines contain integers for the linked list. Output format: - Print 'Yes' if it is a palindrome, 'No' otherwise. Example: Input: 5 1 2 3 2 1 Output: Yes

Key concepts

linked_listpalindromechecking

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.