Skip to content

Conversation

harrdy272
Copy link
Contributor

@harrdy272 harrdy272 commented Oct 8, 2020

Pull Request Template

Description

Problem states that we have to merge k number of linked lists which are in sorted order and we have to make the resultant linked list also in sorted order. I have used multiset and made a function to insert nodes at the end of linked list, which helped me to make a new linked list in sorted format very easily.

Put check marks:

Have you made changes in README file ?

  • Added problem & solution under correct topic.
  • Specified Space & Time complexity.
  • Specified difficulty level, tag & Note(if any).

How Has This Been Tested?

Tests have been made and the code is working fine. Following are some sample test cases:

  • lists = [[1,4,5],[1,3,4],[2,6]]
  • lists = [[]]

Make sure all below guidelines are followed else PR will get Reject:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code so that it is easy to understand
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@GouravRusiya30 GouravRusiya30 merged commit f7c023c into codedecks-in:master Oct 9, 2020
@harrdy272 harrdy272 deleted the heap_solution branch October 9, 2020 04:45
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.

2 participants