Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GFG_POTD_25_SEPT_2024.cpp #207

Open
Avnee29 opened this issue Oct 24, 2024 · 1 comment
Open

GFG_POTD_25_SEPT_2024.cpp #207

Avnee29 opened this issue Oct 24, 2024 · 1 comment

Comments

@Avnee29
Copy link
Contributor

Avnee29 commented Oct 24, 2024

📝 Description

Given a singly linked list of integers. The task is to check if the given linked list is palindrome or not.
Checking if a singly linked list of integers is a palindrome means verifying if the sequence of numbers reads the same from both ends. For instance, 1 -> 2 -> 3 -> 2 -> 1 is a palindrome, while 1 -> 2 -> 3 -> 4 is not.

💡 Enhancement / Feature Request (if applicable)

Efficiency: Implement the check in O(n) time and O(1) space.
Error Handling: Add functionality to handle edge cases, such as empty lists or single-node lists.
Output: Provide detailed feedback on the check, indicating whether the list is a palindrome and the method used to determine this.
Visualization: Include a method to visualize the linked list for better understanding during debugging.
Input Flexibility: Allow the function to accept lists in various formats (e.g., arrays) and convert them to linked lists automatically.

Copy link

Welcome, @Avnee29! Thanks for raising the issue.
Soon the maintainers/owner will review it and provide you with feedback/suggestions.
Make sure to star this awesome repository and follow the account!

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

No branches or pull requests

1 participant