Skip to content

Added Reverse Linked List( Iterative + Recursive)#634

Open
poushalimukherjee01 wants to merge 1 commit into
Pradeepsingh61:mainfrom
poushalimukherjee01:feature/reverse_LL
Open

Added Reverse Linked List( Iterative + Recursive)#634
poushalimukherjee01 wants to merge 1 commit into
Pradeepsingh61:mainfrom
poushalimukherjee01:feature/reverse_LL

Conversation

@poushalimukherjee01

Copy link
Copy Markdown

Hii @Pradeepsingh61 ,
✨This PR adds a complete implementation of the Reverse Linked List algorithm in C++ using both iterative and recursive approaches.
It includes detailed comments, proper modular structure, and both user input and predefined edge case handling for better testing and understanding.

🚀 Features Added:
Implementation of reversing a singly linked list
🔁 Iterative approach (O(1) space)
🌀 Recursive approach (O(n) space due to call stack)
🧪 Included predefined test cases:
- Normal list
- Empty list
- Single node list
👩‍💻 Added user input functionality for dynamic testing
🗒️ Clean output and inline explanations for beginners
🧾 Well-documented code with time & space complexity analysis

🙌 Additional Notes:

  • Contribution made as part of Hacktoberfest 2025
  • File name: reverse_LL.cpp
  • Language: C++ under DSA section
  • Kindly review and merge if it meets the repository standards. 😊.

@github-actions

Copy link
Copy Markdown

🎉 Welcome to Hacktoberfest 2025, @poushalimukherjee01! 🎃

Thank you for your first contribution to our DSA repository! Here's what happens next:

🔍 Automatic Checks

  • Code Validation: Passed
  • 🧪 Compilation Tests: Failed

📋 Next Steps

⚠️ Action needed: Please fix the compilation errors and push your changes.

🎁 What You Get

  • 🏆 Hacktoberfest Credit: This PR counts toward your 6 PR goal for exclusive T-shirt + Tree!
  • 🌟 Hall of Fame: You'll be featured in our contributors list
  • 📚 Learning: Code review feedback from experienced developers

💡 Tips for Success

  • Follow our Contributing Guidelines
  • Add comments explaining your algorithm
  • Include time/space complexity analysis
  • Test your code before submitting

Welcome to the community! 🚀

@github-actions

Copy link
Copy Markdown

🤖 Automated PR Status

🔍 Code Validation

Passed - File naming and structure look good!

🧪 Compilation Tests

Failed - Please fix compilation errors and try again.

📋 Overall Status

⚠️ Needs Work - Please address the issues above.
💡 Push new commits to automatically re-run these checks.


This comment was generated automatically. Checks will re-run when you push new commits.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant