Title: To Add Merge Two Linked Lists Algorithm #79
Labels
Assigned📋
This issue has been assigned to you!
Closed:🚫
This issue or PR is closed due to invalidity or prolonged inactivity and lack of updates.
hacktoberfest2024
Your contribution is part of Hacktoberfest 2024! 🎉
No_Update
It's been so long you are not responding to this issue so we are going to close the issue soon.
Initiative (Required)
Hacktoberfest 2024 🎃
Is your feature request related to a problem? Please describe.
I will be providing an efficient Algorithm that merges two Sorted Linked lists in O(m+n) time where m and n are the lengths of each of the lists respectively
Describe the solution you'd like.
The Algorithm Works by using pointers over both linked lists and connecting their link based on which node is lesser than the other for example if the pointer on the node in the second lists points to a value less than that of the pointer on the first node then the pointer on the first node will point to the second node and thus by changing the links we achieve an efficient solution
Add any other context or screenshots about the feature request here.
No response
The text was updated successfully, but these errors were encountered: