pratik-choudhari / AlgoCode

Welcome everyone!🌟 Here you can solve problems, build scrappers and much more💻
https://github.com/pratik-choudhari/AlgoCode
MIT License
131 stars 166 forks source link

Implemented Merge Two Sorted Lists in Java #306

Closed dhairya-parikh closed 3 years ago

dhairya-parikh commented 3 years ago

Description

Question: Given 2 sorted linked lists, merge the lists to a single sorted linked list. Example: Input: List1: 2 -> 4 -> 5 -> 6 -> 8 -> 9 List2: 1 -> 3 -> 7

Output: 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7 -> 8 -> 9

Reference Issue number #270

issue_no must refer to the issue related to this PR, visit here

Type of change

Choosing one or more options from the following as per the nature of your Pull request. NOTE: Check boxes using [x]

Checklist:

pratik-choudhari commented 3 years ago

@dhairya-parikh Follow the directory structure. You have made changes in main repository folder.