• Tutorials
  • DSA
  • Data Science
  • Web Tech
  • Courses
September 13, 2023 |600 Views

SDE Sheet - Check if Linked List is Palindrome

  Share  1 Like
Description
Discussion

This video is part of the Linked List section in the GFG SDE Sheet.

In this video, we are given a singly linked list of size N of integers. The task is to check if the given linked list is palindrome or not.

Example :

Input:
N = 3
value[] = {1,2,1}

Output: 1

Explanation: The given linked list is 1 2 1 , which is a palindrome andHence, the output is 1.

Try it out before watching the implementation of the problem in the video. We recommend watching the video, even if you can solve the problem. You may discover something new. All the best!!!

Do check out:-

Article: https://www.geeksforgeeks.org/function-to-check-if-a-singly-Linked-list-is-palindrome/
Problem: https://practice.geeksforgeeks.org/problems/check-if-linked-list-is-pallindrome/1
SDE Sheet: https://www.geeksforgeeks.org/sde-sheet-a-complete-guide-for-sde-preparation/