Rules of Optimization: Rule 1: Don't do it. Rule 2 (for experts only): Don't do it yet. Michael A. Jackson

Check palindrome

Language Java | Level Intermediate | Category Data structure | September 5, 2015 10:21 pm


Data structure Description

A palindrome is a word, phrase, the number which reads the same backward or forward.

Write a program to find palindrome in the singly linked list. If the list contains palindrome, it return true; otherwise, it returns the false.


Output

   					 

Print the list of items: 21->52->33->21->67->NULL
Print the list of items after remove duplicate: false11->22->11->NULL
Print the list of items after remove duplicate: false

				    

Comments


No comments available!

Please login to add comments.