From ee84d540d2229ab4c30d523c54a845cc53f7dd6f Mon Sep 17 00:00:00 2001 From: Deven <63876261+devenperez@users.noreply.github.com> Date: Tue, 9 Aug 2022 19:22:04 -0400 Subject: [PATCH] Create README - LeetHub --- 21-merge-two-sorted-lists/README.md | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 21-merge-two-sorted-lists/README.md diff --git a/21-merge-two-sorted-lists/README.md b/21-merge-two-sorted-lists/README.md new file mode 100644 index 0000000..b5058a6 --- /dev/null +++ b/21-merge-two-sorted-lists/README.md @@ -0,0 +1,34 @@ +

21. Merge Two Sorted Lists

Easy


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.

+ +

 

+

Example 1:

+ +
Input: list1 = [1,2,4], list2 = [1,3,4]
+Output: [1,1,2,3,4,4]
+
+ +

Example 2:

+ +
Input: list1 = [], list2 = []
+Output: []
+
+ +

Example 3:

+ +
Input: list1 = [], list2 = [0]
+Output: [0]
+
+ +

 

+

Constraints:

+ + +
\ No newline at end of file