How to check if linked list is palindrome?
[Question]: Input singly linked list return true if linked list is palindrome.Example: – Input: head = [1,2,2,1] Output: true Approach# Reverse Linked list & compare first and last item
How to check if linked list is palindrome? Read More »