Skip to content

Alternate approach for determining whether a linked list is palindrome or not#574

Open
6vam4arya wants to merge 4 commits intoloveBabbar:mainfrom
6vam4arya:palindrome/alt_approach
Open

Alternate approach for determining whether a linked list is palindrome or not#574
6vam4arya wants to merge 4 commits intoloveBabbar:mainfrom
6vam4arya:palindrome/alt_approach

Conversation

@6vam4arya
Copy link
Copy Markdown

The added file contains the code for an alternate approach for determining whether a given linked list is a palindrome or not. The given linked list is reversed(without losing the original one) and then its data values are compared with the original list's data values. The linked list is not reversed in place to avoid changing of the original list. Instead, a new reversed list is created and then compared to the original one.
Submission Screenshot
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant