How to check if linked list is palindrome in java

Last updated on March 25th, 2017 at 01:05 am

Previous
Next

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.

Previous
Next

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.

Add Comment

Join Our News Letter - Stay Updated

Subscribe to Awesome Java Content.
You can like our facebook page Java2blog