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

Merge K sorted linked lists #22

Open
anu-shka-k opened this issue Oct 24, 2023 · 5 comments
Open

Merge K sorted linked lists #22

anu-shka-k opened this issue Oct 24, 2023 · 5 comments

Comments

@anu-shka-k
Copy link
Contributor

Given K sorted linked lists of size N each, the task is to merge them all maintaining their sorted order.

Input: K = 3, N = 4
list1 = 1->3->5->7->NULL
list2 = 2->4->6->8->NULL
list3 = 0->9->10->11->NULL
Output: 0->1->2->3->4->5->6->7->8->9->10->11

Input: K = 3, N = 3
list1 = 1->3->7->NULL
list2 = 2->4->8->NULL
list3 = 9->10->11->NULL
Output: 1->2->3->4->7->8->9->10->11

@Payalchandak5
Copy link
Contributor

Please assign me with this issue
Payal Chandak
UEC2022118
Sy E&tc

@anu-shka-k
Copy link
Contributor Author

Assigned, please create a PR within 2 days

@anu-shka-k
Copy link
Contributor Author

anu-shka-k commented Oct 29, 2023 via email

@Payalchandak5
Copy link
Contributor

Yes did

@anu-shka-k
Copy link
Contributor Author

anu-shka-k commented Oct 29, 2023 via email

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

2 participants