Skip to content

Commit

Permalink
Merge pull request MisterBooo#25 from bluove/bug
Browse files Browse the repository at this point in the history
a little mistake
  • Loading branch information
MisterBooo committed May 22, 2019
2 parents 4bc2b55 + 879e525 commit 79fd9bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes/LeetCode第21号问题:合并两个有序链表.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ ListNode* mergeTwoOrderedLists(ListNode* pHead1, ListNode* pHead2){
if (NULL == pHead1){
return pHead2;
}else if(NULL ==pHead2){
return pHead2;
return pHead1;
}else{
if (pHead1->data < pHead2->data){
newHead = pHead1;
Expand Down

0 comments on commit 79fd9bb

Please sign in to comment.