Leetcode Solutions Java Python C++
All contents and pictures on this website come from the Internet and are updated regularly every week. They are for personal study and research only, and should not be used for commercial purposes. Thank you for your cooperation.
Welcome to Subscribe On Youtube:

21. Merge Two Sorted Lists

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.

Example:

Input: 1->2->4, 1->3->4
Output: 1->1->2->3->4->4

Difficulty:

Easy

Lock:

Normal

Company:

Adobe Airbnb Alibaba Amazon Apple Arista Networks Atlassian Bloomberg ByteDance Cisco Facebook Google Huawei Indeed Intel LinkedIn Lyft Microsoft Oracle Tencent Uber Visa VMware Walmart Labs Yahoo Yandex

Problem Solution

21-Merge-Two-Sorted-Lists

All Problems:

Link to All Problems
All contents and pictures on this website come from the Internet and are updated regularly every week. They are for personal study and research only, and should not be used for commercial purposes. Thank you for your cooperation.