Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 234 Bytes

File metadata and controls

22 lines (15 loc) · 234 Bytes

Palindrome LinkedList

Given a singly linked list, determine if it is a palindrome.

Example:

Input :

1->2

Output: : false

Input :

1->2->2->1

Output: : true