The trouble with programmers is that you can never tell what a programmer is doing until itís too late. Seymour Cray

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.