---
title: "Discussion on \"Slow and Fast Pointers: 234. Palindrome Linked List\" | Hashnode"
description: "Discussion on \"Slow and Fast Pointers: 234. Palindrome Linked List\". Question:\nGiven the head of a singly linked list, return true if it is a palindrome.\nExample 1:\nInput: head = [1,2,2,1]\nOutput: true\nExample 2:\nInput: head = [1,2]\nOutput: false\nConstraints:\nThe number of nodes in the list is in the range [1, 105].\n0..."
url: "https://hashnode.com/posts/slow-and-fast-pointers-234-palindrome-linked-list/62b6679892447c9aed5b660c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Slow and Fast Pointers: 234. Palindrome Linked List](https://raahulsaxena.hashnode.dev/slow-and-fast-pointers-234-palindrome-linked-list?utm_source=hashnode&utm_medium=feed)

Question: Given the head of a singly linked list, return true if it is a palindrome. Example 1: Input: head = \[1,2,2,1\] Output: true Example 2: Input: head = \[1,2\] Output: false Constraints: The number of nodes in the list is in the range \[1, 105\]. 0...

Jun 25, 2022 · 2 min read · raahulsaxena.hashnode.dev  
Read the article

-   [#linkedlists](https://hashnode.com/tag/linkedlists)
-   [#slowfastpointers](https://hashnode.com/tag/slowfastpointers)
-   [#java](https://hashnode.com/tag/java)
-   [#palindrome](https://hashnode.com/tag/palindrome)

## Written by

[Rahul Saxena](https://hashnode.com/@raahulsaxena)

@raahulsaxena · India

  
[View profile](https://hashnode.com/@raahulsaxena)

Clarity | Focus | Discipline

I’m a Master’s student in Computer Science at the University of Massachusetts Amherst, specializing in Computer Vision and Natural Language Processing. I focus on enhancing image captioning, visual question answering (VQA), and text-to-image generation using deep learning. I’m seeking Fall 2024 internships, co-op opportunities, and full-time roles starting in 2025. With over four years of software development experience in healthcare and fintech, including roles at PayPal and Philips, I excel in C++, Java, Python, and JavaScript, with a preference for Python and C++. Outside of work, I’m passionate about photography and trail running, having participated in several marathons and ultra events. I’m open to connecting with professionals and recruiters who value collaboration. Reach out to me at rahulsaxena@umass.edu or connect on LinkedIn.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
