Given a singly linked list of integers, check if the values of the nodes are symmetrical(Palindrome).
Example:
1->23->45->6->45->23->1->null is symmetrical
1->23->4->32->1->null is not symmetrical
null is not symmetrical
1->null is symmetrical
public class Answer implements PalindromeListInterface
{
@Override
public boolean CheckPalindrome(Node node) {
// WRITE YOUR CODE HERE
}
}
// Here is the Node.java
public class Node {
public int nodeValue;
public Node nextNode;
}
Answer
Answer
"Good job and thanks for sharing such a good blog You’re doing a great job. Keep it up !!
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
"