-
-
Notifications
You must be signed in to change notification settings - Fork 157
Add a Solution for Merging Two Sorted Linked Lists (LeetCode Problem 21) #405
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
Add a Solution for Merging Two Sorted Linked Lists (LeetCode Problem 21) #405
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Here's the code health analysis summary for commits Analysis Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change code based on suggestions
@@ -0,0 +1,174 @@ | |||
--- | |||
id: MergeTwoSortedLists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change id like id: merge-two-sorted-lists
### Conclusion | ||
|
||
The above solution efficiently merges two sorted linked lists into a single sorted linked list. It employs a straightforward approach to compare the elements from both lists and attach the smaller element to the merged list. This ensures that the merged list maintains the sorted order of the input lists, providing a simple yet effective approach to solving the problem of merging two sorted linked lists. | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove ```
@ajay-dhangar All done. other have this too if I don't do that then it will give an error |
|
okay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Related Issue
Fix: #372
Description
As requested, I have added the solution for the "Merge Two Sorted Lists" problem from LeetCode. The solution includes:
id, title, desc, label, and tags
Problem statement
Problem description and links
Examples
Constraints
Solution code for Python, Java, and C++
Approach and explanation
Conclusion
This should provide a comprehensive and clear solution to the problem, following the structure and quality of previous solutions. I hope this meets the requirements.
Type of PR
Screenshots / Videos (if applicable)
Checklist
Additional Context
i followed instaruction as you said
i hope quality of this code impressed you
thank you
Resources for Guidance
Here are some resources that may be helpful as you contribute to CodeHarborHub:
Resources for DSA Features on Our Site: