Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement ListNode class and swapPairs method to swap adjacent nodes in a linked list. Add helper functions for creating and printing linked lists.
✨ Open Source Learning Stories – Pull Request Template
Thank you for contributing to Open Source Learning Stories! 🎉
Please ensure your PR follows the guidelines below to help us review it quickly.
✅ Author Checklist
stories/folder.<your-github-username>.md. (We recommend using your GitHub username for file naming consistency).📖 Description of Changes
Please provide a clear and brief description of your contribution.
(e.g., “Added my personal open-source journey story,” “Fixed a typo in the Java section of the README,” etc.)
🔗 Related Issue (Optional)
If this Pull Request resolves an existing issue, please link it here.
🖼️ Screenshots / Preview (Optional)
If your contribution involves significant text changes or documentation fixes, you can provide a preview here.
🎉 Tip: Thank you again for being a part of this project! We appreciate your story!