All Problems

Palindrome Linked List

Easylinked-listExpected: O(n) time, O(1) spaceInterview Context
linked-list

Problem

Given the head of a singly linked list, return true if it is a palindrome.

Loading...