From 03272ef92005ac9fc3486630dd7ac1b13ca9c73d Mon Sep 17 00:00:00 2001 From: Udhay <72250606+Udhay-Brahmi@users.noreply.github.com> Date: Tue, 15 Dec 2020 08:00:59 +0530 Subject: [PATCH] Create Check if Linked List is Palindrome --- Check if Linked List is Palindrome | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Check if Linked List is Palindrome diff --git a/Check if Linked List is Palindrome b/Check if Linked List is Palindrome new file mode 100644 index 0000000..6944a04 --- /dev/null +++ b/Check if Linked List is Palindrome @@ -0,0 +1,16 @@ + +bool isPalindrome(Node *head) +{ + //Your code here + string h=""; + while(head!=NULL){ + h+=to_string(head->data); + head=head->next; + } + int i=0,j=h.length()-1; + while(i