Commit 879e5250 authored by bluove's avatar bluove
Browse files

a little mistake

parent 4bc2b55a
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment