We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92ac75c commit 39d37d2Copy full SHA for 39d37d2
solution/1-99/0021.merge-two-sorted-lists/solution.go
@@ -11,6 +11,11 @@ package leetcode
11
* Definition for singly-linked list.
12
*/
13
14
+type ListNode struct {
15
+ Val int
16
+ Next *ListNode
17
+}
18
+
19
func mergeTwoLists1(l1 *ListNode, l2 *ListNode) *ListNode {
20
if l1 == nil {
21
return l2
solution/1-99/0021.merge-two-sorted-lists/solution_test.go
@@ -5,11 +5,6 @@ import (
5
"testing"
6
)
7
8
-type ListNode struct {
9
- Val int
10
- Next *ListNode
-}
-
func TestMergeTwoLists(t *testing.T) {
t.Run("Test-1-1", func(t *testing.T) {
0 commit comments