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.

Was this post helpful?

Comments

  1. I love your blog, also Can you please add an article for – Intersection point of two linkedLists, this question is FAQ

Leave a Reply

Your email address will not be published. Required fields are marked *