Question: 1. Given a singly linked list write a method static boolean isPalindrome(Node head) in class Question2.java, return true if it is palindrome or false otherwise.
1. Given a singly linked list write a method static boolean isPalindrome(Node head) in class Question2.java, return true if it is palindrome or false otherwise. Where Node head represents the linked list. For example: Input: [1,2,2,1] Output: true Input: [1,2.2.3] Output: false Grading Scheme: Question 1: 10 points Question 1: 10 points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
