How to check if linked list is palindrome in java

In this post, we will see how to check if linked list is palindrome or not.

Java Linked List Interview Programs:

Algorithm:

Java Program:

When you run above program, you will get following output:

Time complexity : O(n)
Space complexity : O(1)

Please go through java interview programs for more such programs.

Add Comment