Leetcode 0234. Palindrome Linked List
Posted on Sat 29 October 2022 in Leetcode • Tagged with palindrome-center-expansion, fast-slow-pointer
Question Link : https://leetcode.com/problems/palindrome-linked-list/
Difficulty: Easy
Question
Given the head of a singly linked list, return true if it is a palindrome or false otherwise. Example 1:
Input: head = [1,2,2,1] Output: true
Example 2:
Input: head = [1,2] Output: false
Constraints:
The number of …
Continue reading