21 lines
263 B
Go
21 lines
263 B
Go
package main
|
|
|
|
type ListNode struct {
|
|
Val int
|
|
Next *ListNode
|
|
}
|
|
|
|
func main() {
|
|
|
|
}
|
|
func mergeTwoLists(list1 *ListNode, list2 *ListNode) *ListNode {
|
|
upP := list1
|
|
dnP := list2
|
|
for upP.Next != nil && dnP.Next != nil {
|
|
if upP.Next == nil {
|
|
|
|
}
|
|
}
|
|
return nil
|
|
}
|