Angad Sandhu
Search
Browse

21_Merge_Two_Sorted_Lists

Source name
21_Merge_Two_Sorted_Lists.py
# File: Leetcode/Solutions/21_Merge_Two_Sorted_Lists.py

"""
Problem Number: 21
Problem Name: Merge Two Sorted Lists
Difficulty: Easy
Tags: Linked List, Recursion, Neetcode 150
Company (Frequency): Amazon, Apple, Facebook, Google, Microsoft
Leetcode Link: https://leetcode.com/problems/merge-two-sorted-lists/description/

DESCRIPTION

You are given the heads of two sorted linked lists `list1` and `list2`.

Merge the two lists in a one sorted list. The list should be made by splicing together the nodes of the first two lists.

Return the head of the merged linked list.
"""

Browse the library